Add Safe() template function to notif templates.

This commit is contained in:
Kailash Nadh 2022-09-10 12:20:27 +05:30
parent 5a9e9209c8
commit f266f93cc8

View file

@ -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")