[Tb] Problem with RSS exporting

From: Gary King <gwking__AT__cs.umass.edu>
Date: Wed Nov 10 2004 - 12:25:50 EST

I'm using the following to export RSS items:

> <item>
> <title>^title^</title>
> <link>^URL^</link>
> <pubDate>^lastModified(this, "*")^</pubDate>
> <guid>^URL^</guid>
> <description>
> ^encode( ^text(this))
> </description>
> </item>

This works except when an item has a link with embedded ampersands in
it. For example:

> http://story.news.yahoo.com/news?tmpl=story&cid=710&e=2&u=/usatoday/
> 20041109/pl_usatoday/druggistsrefusetogiveoutpill

This creates RSS that looks like:

> 27. <item>
> 28. <title>All your bodies is ours</title>
> 29.
> <link>http://eksl.cs.umass.edu/~gwking/polliblog/publisha/
> allyourb.html</link>
> 30. <pubDate>Wed, 10 Nov 2004 07:42:00 -0500</pubDate>
> 31.
> <guid>http://eksl.cs.umass.edu/~gwking/polliblog/publisha/
> allyourb.html</guid>
> 32. <description>
> 33. &lt;P&gt;From USA Today via &lt;a
> href="http://story.news.yahoo.com/news?tmpl=story&cid=710&e=2&u=/
> usatoday/20041109/pl_usatoday/druggistsrefusetogiveoutpill"
> __AT__gt;Yahoo.com&lt;/a&gt; via the Daily Kos:&lt;/P&gt;
...

and line 33 is an error because (I think) of the "&"s that have not
been converted into "&amp;"s

Any help appreciated,

thanks,

-- 
Gary Warren King, Lab Manager
EKSL East, University of Massachusetts * 413 577 0176
All Windows users: Please be aware that there is a new unknown worm
spreading itself via email.  (Mac and Linux users don't have to read
this email)
   -- typical computing support e-mail
Received on Wed Nov 10 17:25:50 2004

This archive was generated by hypermail 2.1.8 : Wed Dec 14 2005 - 10:45:20 EST