Reputation: 8380
Is HTML code inside the <description>
tag compliant in RSS 2.0?
Upvotes: 46
Views: 22245
Reputation: 928
You can decode <
and >
char to html code
<
: <
>
: >
Upvotes: 3
Reputation: 9955
The RSS 2.0 specification says that you can include HTML in the description element so long as you properly encode the markup.
You have two ways to do this:
Convert tags to escaped HTML entities:
<description>this is <b>bold</b></description>
Wrap the description content within a CDATA
section:
<description><![CDATA[this is <b>bold</b>]]></description>
Upvotes: 74