]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
tag plugin: encode categories using numeric values
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 23 Dec 2011 23:54:59 +0000 (00:54 +0100)
committerJoey Hess <joey@kitenet.net>
Sat, 24 Dec 2011 23:43:16 +0000 (19:43 -0400)
This ensures that RSS/Atom feeds produced are valid XML.

IkiWiki/Plugin/tag.pm

index 096c92616aa76e2414775b6ed67f8ef9fecd24bf..605f415994e73bee121faab9fb7e5e64f1a02182 100644 (file)
@@ -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]);
                }
        }