Encodes all characters not valid in XML documents using XML entities.
Note that the output will be character-set dependent.
String to escape.
Encodes all characters not valid in XML documents using XML entities.
Note that the output will be character-set dependent.