Im returning xml information from a Newspaper feed.
//FeedURLs
$feeds=array("https://larepublica.pe/rss/sociedad.xml?outputType=rss");
//Read each feed's items
$entries=array();
foreach($feeds as $feed){
$xml=simplexml_load_file($feed);
$entries=array_merge($entries,$xml->xpath("//item"));
}
PRINTING
foreach($entries as $entry){
echo trim($entry->description)."<br/>";
}
$entry->description
returns this (literally)
<![CDATA[ ]]>
I tried this with no success
//$entries = array_map($entries, (array) $xml->xpath("//item"));
What am doing wrong?
This code works for some other feed pages, but in this case It returns empty description.