From: Jean-Christophe Beaupré Date: Wed, 3 Dec 2014 19:20:01 +0000 (-0500) Subject: nitdoc: Escape headers. X-Git-Tag: v0.7~79^2~1 X-Git-Url: http://nitlanguage.org nitdoc: Escape headers. Signed-off-by: Jean-Christophe Beaupré --- 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