Lorem dorum 漢字 is >

é

"; String xmlString = unescapeUnicodeHtml(htmlToXml); assert "
Lorem dorum 漢字" /> Lorem dorum 漢字 is >

é

"; String xmlString = unescapeUnicodeHtml(htmlToXml); assert "
Lorem dorum 漢字" /> Lorem dorum 漢字 is >

é

"; String xmlString = unescapeUnicodeHtml(htmlToXml); assert "
Lorem dorum 漢字"/>

How do I decode Unicode HTML Entities for XML in Java

689 Views Asked by At
String htmlToXml = "<div>Lorem dorum 漢字  is &gt; <p>&eacute;</p></div>";
String xmlString = unescapeUnicodeHtml(htmlToXml);
assert "<div>Lorem dorum 漢字  is &gt; <p>é</p></div>".equals(xmlString);

Is there a library that I can use to implement unescapeUnicodeHtml? If not, what is the best way to implement it?

0

There are 0 best solutions below