Re: Atom flavour contains HTML code
will guaraldi <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Message-ID | <[email protected]> |
Hrm... that's puzzling. It's valid Atom 1.0 according to the
feedvalidator and since the content type is html, it should get handled as
html. I suspect it's a bug in your rss reader.
But it's a wily wily world of syndication formats and readers... So if
there are better ways to deal with the pain, then so be it. I added
handling for $body_escaped and adjusted your patch to this:
<content type="html">
$body_escaped
</content>
This will come out in PyBlosxom 1.3.1.
Thanks!
/will
On Thu, 2 Feb 2006, Martin Michlmayr wrote:
>
> When I point an RSS reader (say, rss2email) to my blog with the Atom
> flavour I end up with HTML code in the text; this doesn't happen with
> RSS20. The change below fixes this but I'm not sure if this is the
> correct one.
>
>
> diff -urN pyblosxom-1.3~/Pyblosxom/flavours/atom.flav/story.atom pyblosxom-1.3/Pyblosxom/flavours/atom.flav/story.atom
> --- pyblosxom-1.3~/Pyblosxom/flavours/atom.flav/story.atom 2006-02-02 19:15:37.000000000 +0000
> +++ pyblosxom-1.3/Pyblosxom/flavours/atom.flav/story.atom 2006-02-02 19:31:00.000000000 +0000
> @@ -8,7 +8,7 @@
> <updated>$w3cdate</updated>
> <published>$w3cdate</published>
> <link rel="alternate" type="text/html" href="$base_url/$file_path_urlencoded" />
> -<content type="html"><![CDATA[
> +<content type="html">
> $body
> -]]></content>
> +</content>
> </entry>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642