Removing cdata in simplehtmldom
<p>Hello good day I am trying to scrape an xml feed that was given to us, I am using simple htmldom to scrape it but some contents have cdata, how can I remove it?</p>

<pre><code>&lt;date&gt;
&lt;weekday&gt;
&lt;![CDATA[ Friday
]]&gt; 
&lt;/weekday&gt;
&lt;/date&gt;
</code></pre>

<p>php</p>

<pre><code>&lt;?php     
&lt;?php 
include('simple_html_dom.php'); 
include ('phpQuery.php'); 
if (ini_get('allow_url_fopen'))
$xml  = file_get_html('http://www.link.com/url.xml'); }
else{       $ch = curl_init('http://www.link.com/url.xml');
curl_setopt  ($ch, CURLOPT_HEADER, false);        
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);           
$src = curl_exec($ch);           
$xml = str_get_html($src, false);  }   
?&gt;
&lt;?php 
foreach($xml-&gt;find('weekday') as $e)
echo $e-&gt;innertext  . '&lt;br&gt;';
?&gt;
</code></pre>

<p>I believe by default simplehtmldom removes the cdata but for some reason it doesn't work.</p>

<p>Kindly tell me if you need any info that would be helpful to solve this issue </p>

<p>Thank you so much for your help</p>
