From: Giuseppe Bilotta Date: Fri, 23 Dec 2011 23:54:59 +0000 (+0100) Subject: tag plugin: encode categories using numeric values X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7411d1a6ce1dcb5d9f343a4a7a6633d3c30eecbf;p=ikiwiki.git tag plugin: encode categories using numeric values This ensures that RSS/Atom feeds produced are valid XML. --- diff --git a/IkiWiki/Plugin/tag.pm b/IkiWiki/Plugin/tag.pm index 096c92616..605f41599 100644 --- a/IkiWiki/Plugin/tag.pm +++ b/IkiWiki/Plugin/tag.pm @@ -201,7 +201,7 @@ sub pagetemplate (@) { if (defined $tags && %$tags) { eval q{use HTML::Entities}; $template->param(categories => - [map { category => HTML::Entities::encode_entities(tagname($_)) }, + [map { category => HTML::Entities::encode_entities_numeric(tagname($_)) }, sort keys %$tags]); } }