try using xml_escape instead