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

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -