Re: [PHP] xmlspecialchars

2005-12-28 Thread Jochem Maas
Richard Lynch wrote: I'm creating some XML data, but not using any of the built-in PHP XML functions, as they are not necessarily available on all servers. I need to encode Data (CDATA) such as URLs etc. htmlspecialchars() works on all my test cases so far, but is it "right"?... I don't think

[PHP] xmlspecialchars

2005-12-27 Thread Richard Lynch
I'm creating some XML data, but not using any of the built-in PHP XML functions, as they are not necessarily available on all servers. I need to encode Data (CDATA) such as URLs etc. htmlspecialchars() works on all my test cases so far, but is it "right"?... Please cc: me on replies -- I'm way b