我正在使用 SimplePie 解析我们的教堂 RSS 提要,其中包含每周的布道,包括音频和视频。我能够获得标题和 mp3 链接,但很难获得 youtube 链接。以下是包含 youtube 视频的 XML 提要中的示例。
它正在使用[CDATA]
我正在使用$item->get_content()
,但它似乎不包含下面的任何标签数据。提要的网址是http://lakeforest.org/feed。当我在浏览器中打开这个 url 时,我可以看到嵌入的 youtube 视频。
任何帮助将不胜感激。
注意:-我评论了下面的 html 仅用于显示
<!--
<description><![CDATA[Huntersville Campus Mike Moses, Lead Pastor Series Discussion Questions: SHAPE, Part 2 Spiritual Gifts Inventory VIDEO AUDIO]]></description>
<content:encoded><![CDATA[<h3>Huntersville Campus</h3>
<p>Mike Moses, Lead Pastor<br />
<a href="http://lakeforest.org/wp-content/uploads/2013/01/SDQ_SHAPEPt2.pdf">Series Discussion Questions: SHAPE, Part 2</a><br />
<a href="http://www.churchgrowth.org/cgi-cg/gifts.cgi?intro=1 <http://www.churchgrowth.org/cgi-cg/gifts.cgi?intro=1" target="_blank">Spiritual Gifts Inventory</a></p>
<h4>VIDEO</h4>
<p><iframe width="420" height="315" src="http://www.youtube.com/embed/4Uv8U8c6isg" frameborder="0" allowfullscreen></iframe></p>
<h4>AUDIO</h4>
<img src="http://feeds.feedburner.com/~r/LakeForest/~4/qMoLVpI1tGI" height="1" width="1"/>]]> -->