XML : How to make DOMDocument::loadXML stop changing/decoding HTML entities

DOMDocument::loadXML changes/decodes HTML entities. I have this string:

  <description>![CDATA[&lt;br &gt; ....    

After DOMDocument::loadXML I get:

  <![CDATA[<br > ...    

It looks like it decodes HTML entities, how can it be stopped? I want to get the same output, without decoding it.

No comments:

Post a Comment