-2

I have a string like this:

नमस्कार

Now i want to translate the string to html entity decoder. I can translate manually by using

url https://mothereff.in/html-entities

is there any java api to translate it ? can anyone help me ? thanks in advance

  • possible duplicate of [Java: How to decode HTML character entities in Java like HttpUtility.HtmlDecode?](http://stackoverflow.com/questions/994331/java-how-to-decode-html-character-entities-in-java-like-httputility-htmldecode) – Blake Yarbrough Jul 31 '15 at 13:26

2 Answers2

1

This might prove to be useful unbescape. I found it to be diverse and very quick to implement. I'm using it to convert huge lists of strings with HTML entities in them back to normal strings. It's quick and accurate so far.

Grimbly
  • 194
  • 8
0

It seems, after a quick google search, that a popular solution to this is using StringEscapeUtils.unescapeHtml4(). More information can be found in this Stack Overflow question.

Community
  • 1
  • 1
Blake Yarbrough
  • 2,286
  • 1
  • 20
  • 36