Skip Menu |
 

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

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

People
Owner: Nobody in particular
Requestors: chriis [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.97
Fixed in: (no value)



Subject: Escaping in RSS output.
Download (untitled) / with headers
text/plain 747b
Perl 5.6.1, XML-RSS-0.97, Linux 2.2.20 on i386. XML::RSS seems not to escape ampersands in RSS channels to & automatically, and I think it should. At the moment it leaves them in place, which classes an XML entity reference for any URL with a & in - as the URLs of many news sites' stories do. This turns what should be a working RSS channel into something that won't parse correctly at all. At the moment, I'm just using s/&/&/g; in my calling code. It would be a great help if at the very least, there were output encoding options in the module. More information (incl. sample code and broken RSS output) if needed, but I don't think it's necessary in this case. Many thanks for reading. I hope I'm not missing something here..
From: chris [...] cpan.org
Ick, apologies - chris@cpan.org, not chriis@cpan.org. Please CC me in on ticket updates.
From: chris [...] cpan.org
Download (untitled) / with headers
text/plain 158b
.. and as I should have guessed, my & amp; codes were interpreted in the HTML. For the request to make much sense, change a few ampersands to & amp; codes..


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.