re: Convert from RSS 0.91 to RSS 2.0
- I took a look at http://www.rssboard.org/convert-rss-0-91-to-rss-2-0 and
would like to note two, somewhat related issues, and make a rather minor
First is that the DTD in NetScape 0.91 had a functional purpose. It
enabled people to put character entities such as — and and
© in the text portions of their feed. The overwhelming majority of
such usages were in descriptions, and that leads us to...
"Because RSS 2.0 allows HTML in some elements," is unnecessarily vague.
There is exactly one element to be concerned about, and that is
description. In RSS 0.91, it MUST be plain text. In RSS 2.0, the best
practices profile indicates that it MUST be suitable for presentation as
HTML. This means that you either put a <![CDATA[ ]]> wrapper around the
whole thing, or entity escape "&" and "<" characters.
Looping back to the first point, — becomes either amp;mdash;
(note: NOT &!) or the whole description gets wrapped in CDATA.
The minor points are (1) if you are mentioning that item title is now
optional, you probably also should mention that channel language is too;
and (2) it probably bears mentioning that pretty much all of the
number of character limits which were present on various RSS 0.91
elements were lifted.
- Sam Ruby