I wrote a function that basically sanitizes all the contents of an XML tag and replaces any special characters, but I am sure there is a better way of passing this type of information around. Specifically I have had problems with & < and "
I find PHP's htmlentities <http://www.php.net/htmlentities> and html_entity_decode <http://www.php.net/html_entity_decode> (gotta love PHP's naming conventions, or lack thereof) function works great. Even though it was written with HTML in mind it applies to XML too. It converts your & < > " and any other incompatible characters to their XML equivalents. -- Jacob Wright Within Code LLC _______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
