diff --git a/doc/patchqueue/meta_plugin_should_not_escape_title.mdwn b/doc/patchqueue/meta_plugin_should_not_escape_title.mdwn new file mode 100644 index 000000000..0edc4db6c --- /dev/null +++ b/doc/patchqueue/meta_plugin_should_not_escape_title.mdwn @@ -0,0 +1,115 @@ +The meta plugin escapes the overridden title of a page, which makes the title doubly escaped in RSS feeds. +Instead, the meta plugin should not escape the overridden title, but the templates should escape the title (overridden or not) whenever needed. + + === perl/IkiWiki/Plugin/meta.pm + ================================================================== + --- perl/IkiWiki/Plugin/meta.pm (revision 6730) + +++ perl/IkiWiki/Plugin/meta.pm (revision 6731) + @@ -122,7 +122,7 @@ + $template->param(meta => $meta{$page}) + if exists $meta{$page} && $template->query(name => "meta"); + if (exists $title{$page} && $template->query(name => "title")) { + - $template->param(title => $title{$page}); + + $template->param(title => decode_entities($title{$page})); + $template->param(title_overridden => 1); + } + $template->param(permalink => $permalink{$page}) + === templates/recentchanges.tmpl + ================================================================== + --- templates/recentchanges.tmpl (revision 6730) + +++ templates/recentchanges.tmpl (revision 6731) + @@ -4,7 +4,7 @@ +
+