From: Jean-Christophe Beaupré Date: Fri, 12 Dec 2014 19:21:06 +0000 (-0500) Subject: nitdoc: Escape page title. X-Git-Tag: v0.7~10^2~3 X-Git-Url: http://nitlanguage.org nitdoc: Escape page title. Signed-off-by: Jean-Christophe Beaupré --- 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 "