tag plugin: encode categories using numeric values

This ensures that RSS/Atom feeds produced are valid XML.
master
Giuseppe Bilotta 2011-12-24 00:54:59 +01:00 committed by Joey Hess
parent 855d3a52d4
commit 7411d1a6ce
1 changed files with 1 additions and 1 deletions

View 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]);
}
}