From cc183b0ef374f0ea62f585473dd3b176378264f1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Christophe=20Beaupr=C3=A9?= Date: Wed, 3 Dec 2014 14:20:01 -0500 Subject: [PATCH] nitdoc: Escape headers. 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 9f4e3fb..c4729a5 100644 --- a/src/doc/doc_templates.nit +++ b/src/doc/doc_templates.nit @@ -580,7 +580,7 @@ class TplClassDefinition private fun render_list(name: String, elts: Array[TplListElt]) do if elts.is_empty then return - add "
{name}
" + add "
{name.html_escape}
" add "" @@ -597,7 +597,7 @@ class TplSearchPage redef fun rendering do var title = self.title - if title != null then add "

{title}

" + if title != null then add "

{title.to_s.html_escape}

" add "
" add "
" if not modules.is_empty then -- 1.7.9.5