projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
855d3a5
)
tag plugin: encode categories using numeric values
author
Giuseppe Bilotta
<giuseppe.bilotta@gmail.com>
Fri, 23 Dec 2011 23:54:59 +0000
(
00:54
+0100)
committer
Joey 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
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/tag.pm
b/IkiWiki/Plugin/tag.pm
index 096c92616aa76e2414775b6ed67f8ef9fecd24bf..605f415994e73bee121faab9fb7e5e64f1a02182 100644
(file)
--- 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]);
}
}