Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - how to stuff HTML into RSS?? >Thread Next - Re: how to stuff HTML into RSS?? Re: how to stuff HTML into RSS??To: NULL Date: 12/2/2004 12:05:00 PM On 2 Dec 2004 01:03:34 -0800, lkrubner@g... wrote:
>Does it screw things
>up if I stuff HTML into the DESCRIPTION tag on an RSS .91 feed?
It's not what you stuff, it's how you stuff it.
You should encode HTML, so that
<description><p>Some <b>HTML</b> in RSS</description>
becomes this
<description><p>Some <b>HTML</b> in
RSS</p></description>
Watch out as well for & (becomes &) and for é etc. (turn
them into the equivalent numeric entity)
I'd also suggest that you make your HTML fragments into well-formed,
balanced XHTML fragments before you embed them (lower case element
names, close open elements). Although this isn't required, it can make
life easier with XML toolsets.
This stuff isn't hard to do, but it's very poorly documented. There
are many RSS versions, and few of them describe it fully. This is a
useful read
http://diveintomark.org/archives/2004/02/04/incompatible-rss
I'd also avoid the obsolete RSS 0.91 in favour of RSS 1.0 (far
better), or you might prefer the more popular RSS 2.0
--
Smert' spamionam
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
