Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Whats the best way to pass html embed code via rss feed to a rss parser in php?

Im trying to put an html embed code for a flash video into the rss feed, which will then be parser by a parser (magpie) on my other site. How should I encode the embed code on one side, and then decode it on the other so I can insert clean html into the DB on the receiving server?


1 Answers

Since RSS is XML, you might want to check out CDATA, which I believe is valid in the various RSS specs.

<summary><![CDATA[Data Here]]>

Here's the w3schools entry on it: http://www.w3schools.com/XML/xml_cdata.asp

like image 163
Gavin M. Roy Avatar answered Dec 11 '25 02:12

Gavin M. Roy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!