Add Safe()
template function to notif templates.
This commit is contained in:
parent
5a9e9209c8
commit
f266f93cc8
1 changed files with 3 additions and 0 deletions
|
@ -586,6 +586,9 @@ func initNotifTemplates(path string, fs stuffbin.FileSystem, i *i18n.I18n, cs *c
|
|||
"L": func() *i18n.I18n {
|
||||
return i
|
||||
},
|
||||
"Safe": func(safeHTML string) template.HTML {
|
||||
return template.HTML(safeHTML)
|
||||
},
|
||||
}
|
||||
|
||||
tpls, err := stuffbin.ParseTemplatesGlob(funcs, fs, "/static/email-templates/*.html")
|
||||
|
|
Loading…
Reference in a new issue