From 7411d1a6ce1dcb5d9f343a4a7a6633d3c30eecbf Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sat, 24 Dec 2011 00:54:59 +0100 Subject: [PATCH] tag plugin: encode categories using numeric values This ensures that RSS/Atom feeds produced are valid XML. --- IkiWiki/Plugin/tag.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); } } -- 2.26.2