From ba1765fbdfeb0fd1fdf1354c1688580ef7864b68 Mon Sep 17 00:00:00 2001 From: joey Date: Mon, 28 May 2007 19:43:28 +0000 Subject: * More consistent encoding of titles in rss and atom feeds. Don't use ESCAPE=HTML for titles in the templates for these feeds, and instead escape the title going in to the template. Previously, the title was sometimes double-escaped in a feed (if set via meta title), and sometimes not (if set from the page filename). * In the meta plugin, when a title is set, encode the html entities in it numerically. This works better in the current landscape of a rss spec that doesn't specify encoding, and variously broken feed consumers, according to . --- templates/atomitem.tmpl | 2 +- templates/atompage.tmpl | 2 +- templates/rssitem.tmpl | 4 ++-- templates/rsspage.tmpl | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'templates') diff --git a/templates/atomitem.tmpl b/templates/atomitem.tmpl index bdbfe69c7..9190fcc84 100644 --- a/templates/atomitem.tmpl +++ b/templates/atomitem.tmpl @@ -1,5 +1,5 @@ - <TMPL_VAR TITLE ESCAPE=HTML> + <TMPL_VAR TITLE> diff --git a/templates/atompage.tmpl b/templates/atompage.tmpl index b811b8764..1bca3e7f8 100644 --- a/templates/atompage.tmpl +++ b/templates/atompage.tmpl @@ -1,7 +1,7 @@ -<TMPL_VAR TITLE ESCAPE=HTML> +<TMPL_VAR TITLE> diff --git a/templates/rssitem.tmpl b/templates/rssitem.tmpl index 0fab42e71..c243b74b3 100644 --- a/templates/rssitem.tmpl +++ b/templates/rssitem.tmpl @@ -1,9 +1,9 @@ - <TMPL_VAR AUTHOR ESCAPE=HTML>: <TMPL_VAR TITLE ESCAPE=HTML> + <TMPL_VAR AUTHOR ESCAPE=HTML>: <TMPL_VAR TITLE> - <TMPL_VAR TITLE ESCAPE=HTML> + <TMPL_VAR TITLE> diff --git a/templates/rsspage.tmpl b/templates/rsspage.tmpl index 38f9b16b3..34c1a33ce 100644 --- a/templates/rsspage.tmpl +++ b/templates/rsspage.tmpl @@ -1,7 +1,7 @@ -<TMPL_VAR TITLE ESCAPE=HTML> +<TMPL_VAR TITLE> -- cgit v1.2.3