From a8e8ef3e620d12cc18677270bacf359f9d0e8910 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Christophe=20Beaupr=C3=A9?= Date: Fri, 12 Dec 2014 14:21:06 -0500 Subject: [PATCH] nitdoc: Escape page title. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jean-Christophe Beaupré --- src/doc/doc_templates.nit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doc/doc_templates.nit b/src/doc/doc_templates.nit index 8384ba9..497c4cd 100644 --- a/src/doc/doc_templates.nit +++ b/src/doc/doc_templates.nit @@ -23,7 +23,7 @@ import json::static class TplPage super Template - # Page title in HTML header + # The unescaped page title to put in the HTML header. var title: String is writable, noinit # Page url @@ -70,7 +70,7 @@ class TplPage addn " " addn " " addn " " - addn " {title}" + addn " {title.html_escape}" addn "" add "