mirror of
https://github.com/prometheus/alertmanager
synced 2025-03-11 06:07:46 +00:00
Merge pull request #315 from prometheus/add-safehtml
Add safeHtml template function.
This commit is contained in:
commit
6ba0045b4c
@ -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
Block a user