diff --git a/providers/http/http.go b/providers/http/http.go index 0b1c630..62ecbc8 100644 --- a/providers/http/http.go +++ b/providers/http/http.go @@ -28,6 +28,7 @@ func (this *Provider) FuncMap () template.FuncMap { "redirect": funcRedirect, "queryEscape": url.QueryEscape, "queryUnescape": url.QueryUnescape, + "unsafe": funcUnsafe, } } @@ -59,3 +60,7 @@ func funcParseForm (req *http.Request) url.Values { if err != nil { return nil } return req.Form } + +func funcUnsafe(text string) template.HTML { + return template.HTML(text) +}