XML safe strings and encoding

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Hi all,

I'm fighting a bit of a beast here with a string that has fractional
notations in it among other things like quotes etc.  Is there a
function that built-in to php that will properly encode this string so
that it is XML safe?  I've tried htmlentities and specialchars which
don't work.


PS.  I also tried including the bad data in between cdata tags.

Site Timeline