Class XmlEntity
java.lang.Object
org.owasp.dependencycheck.xml.XmlEntity
This is a utility class to convert named XML Entities (such as ø) into
its HTML encoded Unicode code point (i.e. ø). This is a slightly
modified (class/method rename) from an SO answer:
https://stackoverflow.com/questions/7286428/help-the-java-sax-parser-to-understand-bad-xml
- Author:
- https://stackoverflow.com/users/823393/oldcurmudgeon
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringConverts a named XML entity into its HTML encoded Unicode code point.
-
Method Details
-
fromNamedReference
Converts a named XML entity into its HTML encoded Unicode code point.- Parameters:
s- the named entity (note, this should not include the leading '&' or trailing ';'- Returns:
- the HTML encoded Unicode code point representation of the named entity
-