java.nonstandard.XmlTranscode

Undocumented in source.

Members

Functions

xmlEscape
String xmlEscape(String xml)

Encode XML entities into UTF8 string. First checks if processing is needed. If not, the original string is returned. If processing is needed, a new string is allocated.

xmlUnescape
String xmlUnescape(String str)

Decode XML entities into UTF8 string. Eg. "&" -> "&", "&" -> "&", "&" -> "&" Throws TextException on failure The given string is modified.

Meta