Add safeHtml template function.
Fixes https://github.com/prometheus/alertmanager/issues/314
This commit is contained in:
parent
7a14971042
commit
ecd856a401
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue