diff --git a/pkg/csplugin/helpers.go b/pkg/csplugin/helpers.go index 3d4163a1a..75ee773b8 100644 --- a/pkg/csplugin/helpers.go +++ b/pkg/csplugin/helpers.go @@ -1,6 +1,7 @@ package csplugin import ( + "html" "os" "text/template" @@ -28,7 +29,8 @@ var helpers = template.FuncMap{ } return ret }, - "Hostname": os.Hostname, + "Hostname": os.Hostname, + "HTMLEscape": html.EscapeString, } func funcMap() template.FuncMap {