XML invalid with some RSSItems
Brought to you by:
flaimo
Hi,
You should add a CDATA tag on the getDescription()
function for the RSSItems (line 49 in
class.RSSItem.inc.php for version 2.1b (php5) and line
1676 in class.RSSBuilder.inc.php for 1.002 (php4)).
Indeed, if the description uses special chars as
&nsbp;, the RSS produced is not valid XML.
eg: return "<![CDATA[".(string) $this->description."]]>";
Thanx
Alexandre Passant
alex@passant.org
Logged In: NO
I just realised that description should not produce this
kind of special chars, and that CDATA is used mainly in
'content' module, instead of description from RSS core.
Apologies.