Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the valid HTML tags in RSS Feeds?

Tags:

rss

I've looked around, and it doesn't seem like there's any standard of what HTML tags are 'allowed' in RSS - you could put anything in. But the readers I tested only allow certain things.

In my initial testing, it seems like simple styling tags like <b> are fine. So is inline styles like <span style="color:red"> <img>'s seems to work. But <iframe>'s are ignored, as are <script> blocks. Onclick attributes don't work. <style> blocks work in some readers but not others

Is there a general consensus, standard, or compatability site listing what is and isn't supported in what readers? I want to know what the subset of HTMl tags I can use in feeds is.

like image 354
Tom Ritter Avatar asked Jul 16 '09 20:07

Tom Ritter


People also ask

Can RSS contain HTML?

The RSS 2.0 specification says that you can include HTML in the description element so long as you properly encode the markup.

How do I code an RSS feed in HTML?

How To Display RSS Feed In HTML Website? Step 1: Select HTML as your website platform from the options. Step 2: Set the width and height (or auto) of your feed and click on “Get Code”. Step 3: Copy the given Code and paste it into the back-end of any webpage where you want to display RSS feed.


1 Answers

 <title>How to parse full html content in xml feeds</title>
 <description><![CDATA[<html><body>Any code html is valid here like &npsb; 
 and what ever you want to transfer</body></html>]]></description>
 <guid>http://example.com/your-news-id</guid>
like image 125
ashraf mohammed Avatar answered Oct 05 '22 11:10

ashraf mohammed