SimpleXML adding html into Hash tree
- by Miriam Raphael Roberts
Question: I have an xml file that I am pulling from the web and parsing. One of the items in the xml is a 'content' value that has HTML. I am using SimpleXML/XMLin to parse the file like so:
$xml= eval { $data-XMLin($xmldata, forcearray = 1, suppressempty= +'') };
When I use Dumper to dump the hash, I dsicovered that SimpleXML is parsing the HTML…