each of the following lines throws a NumberFormatException:
String test1 = HTMLEntities.unhtmlentities("");
String test2 = HTMLEntities.unhtmlentities("");
String test3 = HTMLEntities.unhtmlentities("ab;");
the fix:
change
Integer iso;
to
Integer iso = null;
and change
if (entity.charAt(1) == '#') {
if (entity.charAt(2) == 'x') {
iso = new...
HTMLEntities 1.0 has been released.
HTMLEntities is an open-source Java class that contains a collection of static methods (htmlentities, unhtmlentities, ...) to convert special and extended characters into HTML entitities and vice versa.
A character entity reference is an SGML construct that references a character of the document character set.