using php to parse this xml code:
<description><![CDATA[foobar
foobar2
foobar3]]></description>
The problem is when I parse with simplexml_load_file
I forget the orginal format:
$content = simplexml_load_file("my_file.xml");
$a = $content->description;
echo $a;
foobar foobar2 foobar3
How can I preserve the original format?
Note: I can't edit the xml file, I must use simplexml_load_file