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 {