Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Regular Coder
    Join Date
    Jun 2010
    Thanked 8 Times in 8 Posts

    Markup OK in RSS description element?

    I've written some code to generate an RSS feed from my website.

    I know that this is valid for the description element of a channel or item:

    <description>The quick brown fox jumps over the lazy dog.</description>
    But is this valid?

    <description><![CDATA[<span style='display:block'><b>T</b>he quick brown fox jumps over the lazy dog.</span><a style='display:block' href='http://www.mydomain.com'>More articles and other stuff here.</a>]]></description>
    And what will most RSS clients do with the markup within the CDATA section? I notice that IE interprets it correctly, safari ignores the tags and just displays the content of the tag and Epiphany on Debian just makes a dog's dinner of it!

    I ask because I've see feeds that do exact what I've shown above.
    Last edited by XmisterIS; 04-20-2012 at 02:57 PM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts