Does anybody know of a JavaScript function anywhere which takes a string and returns it stripped of invalid XML 1.0 characters?
I'm trying to create valid XML 1.0 from content extracted from a database containing utf-8 data, but some of the data contains invalid characters so the xml I create won't validate.
The language used for accessing the data and creating the xml is server-side JavaScript.
when working with the poorest of the poor, 70% are women.� Unless we target these beneficiaries and. The language is JavaScript. I'm not sure the code itself would help because the XML structure is not the issue. The problem is that some characters in the content are considered by XML 1.0 to be "invalid." Here is a line of code if that helps:latestPosts += '<body><![CDATA[' + body + ']]></body>' + crlf;.