Is there any function that I can use to parse any string to ensure it won\'t cause xml parsing problems? I have a php script outputting a xml file with content obtained from
html_entity_decode($string, ENT_QUOTES, 'UTF-8')