Home » XML » XML_Serializer » Bug #2920
Replace Entities
Details
| Request #2920 | Replace Entities |
|---|---|
| Submitted | 2004-12-08 14:01 UTC |
| From | glonak at eurodns dot com |
| Assigned | schst |
| Status | Closed |
| Package | XML_Serializer |
| PHP Version | 5.0.2 |
| OS | Gentoo Linux |
| Roadmaps | (Not assigned) |
Comments
[2004-12-08 14:01 UTC] glonak at eurodns dot com
Description:
------------
XML_Serializer version 0.13
The XML:Util class allows to choice to replace entities or not.
So I add an option 'replaceEntities' => true
in the _defaultOptions array.
And I modify the next lines :
function _serializeValue() :
line 334 : $xml = $this->_createXMLTag($tag);
becomes : $xml = $this->_createXMLTag($tag, $this->options['replaceEntities']);
function _serializeArray()
line 452->455
$tmp .= $this->_createXMLTag(array(
'qname' => $key,
'attributes' => $atts,
'content' => $value )
);
become :
$tmp .= $this->_createXMLTag(array(
'qname' => $key,
'attributes' => $atts,
'content' => $value ),
$this->options['replaceEntities'
);
Thanks to add it in your next version of the XML_Serializer