Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id:
32230
Status:
new
Priority:
Low/Low
Queue:

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

BugTracker
Severity:
Critical
Broken in:
0.28
Fixed in:
(no value)



Subject: misformats content for at least 2 types
Thanks so much for XML::Atom, its great! 1) if content's type is xhtml, and you give it xhtml as content is get HTML escaped 2) if content type is text (and you pass it text which should be HTML escaped, and is, in in this case) it wraps it in <div xmlns="http://www.w3.org/1999/xhtml"></div> which subsequently gets HTML escaped and displayed by the feed readers. Solution: 1) need a way to tell it to not escape the content, maybe a method like: content_that_ive_made_sure_is_valid_for_the_type( $content ) or a flag to content like: 'do_not_escape_content' => 1 2) if type=text do not wrap it in <div xmlns="http://www.w3.org/1999/xhtml"></div> I marked is as critical since it make XML::Atom based feeds pretty useless without some crazy fix like passing as_xml() though some regexes to strip out the <div> which is a hack but at least text looks right then... Thanks! note to self: c3905


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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