This method ensures that the output String has only valid XML unicode characters as specified by the XML 1.0 standard.
This method ensures that the output String has only valid XML unicode characters as specified by the XML 1.0 standard. For reference, please see the standard. This method will return an empty String if the input is null or empty.
The String whose non-valid characters we want to remove.
The in String, stripped of non-valid characters.
http://blog.mark-mclaren.info/2007/02/invalid-xml-characters-when-valid-utf8_5873.html