0

How can i convert HTML symbol to Java symbol? For example: I have &#xe000 String and i need Java char like \ue000. What i need to do?

Procurares
  • 2,131
  • 4
  • 21
  • 34

2 Answers2

1

Try unescapeHtml4 from the Apache Commons toolkit.

nneonneo
  • 162,933
  • 34
  • 285
  • 360
0

I found better solution in Android. I just call static method Html.fromHtml("&#xe000"), and the given result wat another String in Java source format like \ue000.

Procurares
  • 2,131
  • 4
  • 21
  • 34