AW: [PEAR-DEV] XML_Unserializer replaces XML entities!

From: Date: Wed, 22 Oct 2003 09:16:47 +0000
Subject: AW: [PEAR-DEV] XML_Unserializer replaces XML entities!
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-22892@lists.php.net to get a copy of this message
Hi, > It would be very nice to add an option > "replaceXmlEntities" => FALSE by default, > so as to obtain instead: > Array > ( > [class] => cats & dogs > [_content] => wallace & gromit > ) > (and the same to the other four XML basic entities) > This will be most useful when the array content is intended to end up in a > XHTML document. XML entitites are not replaced by XML_Unserializer, but the XML Parser used by PHP (expat). Normally it is the desired behaviour to replace entities when parsing a document. I could add a feature that allows callbacks when unserializing a document, so it could be possible to replace the entities back.... I will think about this in the next few days. Stephan

« previous php.pear.dev (#22892) next »