Retrieving RSS feed with tag

后端 未结 5 1739
北恋
北恋 2020-12-05 17:58

I have the following snippet of code:

function getFeed($feed_url) {

$content = file_get_contents($feed_url);
$x = new SimpleXmlElement($content);

echo \"&l         


        
5条回答
  •  [愿得一人]
    2020-12-05 18:49

    The working answer for this is just:

    $e_content = $entry->children("content", true);
    $e_encoded = (string)$e_content->encoded;
    

提交回复
热议问题