Permalink
Branch: master
Find file Copy path
b9cfb69 Apr 29, 2016
1 contributor

Users who have contributed to this file

18 lines (13 sloc) 286 Bytes
package plugin
import (
"html/template"
)
// NoEscape returns a template.FuncMap
// * NOESCAPE prevents escaping variable
func NoEscape() template.FuncMap {
f := make(template.FuncMap)
f["NOESCAPE"] = func(name string) template.HTML {
return template.HTML(name)
}
return f
}