Procurares
Procurares

Reputation: 2249

Convert HTML symbol to Java symbol

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?

Upvotes: 0

Views: 326

Answers (2)

Procurares
Procurares

Reputation: 2249

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.

Upvotes: 0

nneonneo
nneonneo

Reputation: 179382

Try unescapeHtml4 from the Apache Commons toolkit.

Upvotes: 1

Related Questions