Java: How to unescape HTML character entities in Java? -


basically decode given html document, , replace special chars, such "&nbsp" -> " ", ">" -> ">".

in .net can make use of httputility.htmldecode.

what's equivalent function in java?

i have used apache commons stringescapeutils.unescapehtml4() this:

unescapes string containing entity escapes string containing actual unicode characters corresponding escapes. supports html 4.0 entities.


Comments

Popular posts from this blog

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -