Skip Menu |

This queue is for tickets about the XML-RSS CPAN distribution.

Report information
The Basics
Id: 2032
Status: resolved
Priority: 0/
Queue: XML-RSS

People
Owner: KELLAN [...] cpan.org
Requestors: ranger [...] befunk.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.01
Fixed in: 1.02



Subject: XML::RSS transforms < into &lt; even inside CDATA
On line 1775 of RSS.pm in XML::RSS 1.01 (in sub encode), it is taking the text and transforming < into &lt;. I'm trying to put some HTML into my RDF output, but it's ending up getting screwed up because of this. I tried wrapping it in a <![CDATA[]]> but it still ends up getting munged. Is there any reason this is getting transformed? Especially considering it's not even consistent, > doesn't get turned into &gt; -- only &lt; is a special case... It shouldn't matter, but I'm on perl 5.6.0 on MacOSX 10.2.3
From: kellan
[guest - Wed Feb 5 22:54:23 2003]: Show quoted text
> On line 1775 of RSS.pm in XML::RSS 1.01 (in sub encode), it is taking > the text and transforming < into &lt;. I'm trying to put some HTML > into my RDF output, but it's ending up getting screwed up because > of this. I tried wrapping it in a <![CDATA[]]> but it still ends > up getting munged. Is there any reason this is getting > transformed? Especially considering it's not even consistent, > > doesn't get turned into &gt; -- only &lt; is a special case... > > It shouldn't matter, but I'm on perl 5.6.0 on MacOSX 10.2.3
Thanks. Should have thought of that. In the meantime you can turn off the automatic encoding with: new XMl::RSS(encode_output => 0)