cleanXml

Description

Cleans up XML to ensure that it doesn't contain invalid characters.

Syntax

string cleanXml (string $string)



Parameter $string

Expected type: String
Description: The XML string to clean



Return value

Expected type: String
Description: The XML string with invalid Unicode characters removed


Notes

  • See http://www.w3.org/TR/2000/REC-xml-20001006#NT-Char for more info.
Advertisement: