return t.Format(layout), nil
}
-func SafeHTML(text string) template.HTML {
- return template.HTML(text)
-}
-
// "safeHTMLAttr" is currently disabled, pending further discussion
// on its use case. 2015-01-19
func SafeHTMLAttr(text string) template.HTMLAttr {
"isSet": IsSet,
"isset": IsSet,
"echoParam": ReturnWhenSet,
- "safeHTML": SafeHTML,
+ "safeHTML": func(a string) template.HTML { return template.HTML(a) },
"safeCSS": SafeCSS,
"safeURL": SafeURL,
"absURL": func(a string) template.HTML { return template.HTML(helpers.AbsURL(a)) },