![](http://www.gravatar.com/avatar/556f7b6ad8246f13ad6edc76be170bd4?size=64&default=https%3A%2F%2Fwww.boogdesign.com%2Fb2evo%2Fmedia%2Fshared%2Fglobal%2Favatars%2Fdefault_avatar_unknown.jpg%3Fmtime%3D1578407068)
Fixing Serendipity Atom Feeds
I have another blog, less technical than this one, which runs Serendipity. I was upgrading to the latest version (a task long neglected) when I noticed that my Atom feeds weren't producing valid XML. The problem was caused by some URLs which had ampersands in them, the Atom feed wasn't encoding them as &
like the RSS versions. A bit of digging around, comparing the Atom templates with the RSS ones, and I uncovered the problem - in the files templates/default/feed_atom1.0.tpl
and templates/default/feed_atom0.3.tpl
find the line:
{$entry.feed_body} {$entry.feed_ext}
And change it to:
{$entry.feed_body|@escape} {$entry.feed_ext|@escape}
It's somewhere around line 50. After that, characters are escaped correctly in the Atom feeds.
Print article | This entry was posted by robertc on 29/09/06 at 07:21:40 pm . Follow any responses to this post through RSS 2.0. |