How to make a valid string for XML in JavaScript?

Posted by MartyIX on Stack Overflow See other posts from Stack Overflow or by MartyIX
Published on 2010-06-02T16:32:18Z Indexed on 2010/06/02 16:33 UTC
Read the original article Hit count: 166

I'm looking for a function to convert a string to the xml string with xml entities where needed. Something like htmlentities in PHP but for XML and in Javascript.

Thank you for any help!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about string