Merge pull request #315 from prometheus/add-safehtml

Add safeHtml template function.
This commit is contained in:
Julius Volz 2016-04-20 16:39:52 +02:00
commit 6ba0045b4c

View File

@ -127,6 +127,9 @@ var DefaultFuncs = FuncMap{
"join": func(sep string, s []string) string {
return strings.Join(s, sep)
},
"safeHtml": func(text string) tmplhtml.HTML {
return tmplhtml.HTML(text)
},
}
// Pair is a key/value string pair.