Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: how to stuff HTML into RSS??

From: Andy Dingley <dingbat@----------.--->
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>&lt;p&gt;Some &lt;b&gt;HTML&lt;/b&gt; in
RSS&lt;/p&gt;</description>

Watch out as well for & (becomes &amp;)  and for &eacute; 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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent