Skip Menu |

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

Report information
The Basics
Id: 32230
Status: new
Priority: 0/
Queue: XML-Atom

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

Bug Information
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