Fog Creek Software
Discussion Board


I'm using RSS in an intranet portal. An RSS channel is a list of items, and each item can have a title, a link and a description.
I need the descriptions to have possibly more than one paragraph. In other words, they need html tags like <p></p> or <br/>. Either that, or allow more than one description per item.
I was not able to get html tags in the descriptions to show up, so far. Is there any easy way of doing this? Or should I use something other than RSS?

The Real PC
Thursday, March 13, 2003

If you want it to not mangle up RSS feeds. make sure that the formatting information is escaped (i.e. uses &lt;&gt;) and de-escaped before being placed into the result page.

Tal Rotbart
Thursday, March 13, 2003

Also, you could look into <![CDATA[  ]]> sections in your XML document.

Ralph Brorsen
Thursday, March 13, 2003

The description element shouldn't contain HTML. Use a newer RSS version (as 1.0 or 2.0) that supports the content:enconded element, which can contain HTML.

For more information, take a look at the following article, which contains more information and pointer to the specifications:

Ronaldo Ferraz
Thursday, March 13, 2003

*  Recent Topics

*  Fog Creek Home