From 53ec7417c6fc836c257f56dd6225516d545e2426 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Wed, 3 Aug 2016 15:31:43 +0100 Subject: [PATCH] try to fix issue #13 --- assets/embed/templates/base.tmpl | 2 +- page/page.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/embed/templates/base.tmpl b/assets/embed/templates/base.tmpl index 6d24209f..cf45959e 100644 --- a/assets/embed/templates/base.tmpl +++ b/assets/embed/templates/base.tmpl @@ -9,7 +9,7 @@ {{ if ne .Config.StyleSheet "" }} {{ end }} diff --git a/page/page.go b/page/page.go index f0e44f42..440d0e44 100644 --- a/page/page.go +++ b/page/page.go @@ -76,6 +76,9 @@ func (p Page) PrintAsHTML(w http.ResponseWriter, templates ...string) (int, erro // execute the template if there aren't errors functions := template.FuncMap{ "Defined": variables.Defined, + "Safe": func(s string) template.HTML { + return template.HTML(s) + }, } if p.Minimal {