ID: 12447 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Feature/Change Request PHP Version: 4.0.6 New Comment:
ext/recode has an XML mode. Maybe that helps (not sure about windows, though) chregu Previous Comments: ------------------------------------------------------------------------ [2001-07-28 06:38:03] [EMAIL PROTECTED] Currently I use function &xml_encode(&$xml) { $xml = str_replace(array('ü', 'Ü', 'ö', 'Ö', 'ä', 'Ä', 'ß' ), array('ü', 'Ü', 'ö', 'Ö', 'ä', 'Ä', 'ß' ), $xml ); $xml = preg_replace(array("/\&([a-z\d\#]+)\;/i", "/\&/", "/\#\|\|([a-z\d\#]+)\|\|\#/i", "/([^a-zA-Z\d\s\<\>\&\;\.\:\=\"\-\/\%\?\!\'\(\)\[\]\{\}\$\#\+\,\@_])/e" ), array("#||\\1||#", "&", "&\\1;", "'&#'.ord('\\1').';'" ), $xml ); return $xml; } to 'encode' strings for use with XML. A 'PHP Land' implementation of this would be handy, I think. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=12447&edit=1