diff --git a/.gitignore b/.gitignore index ccaf1e330..e196c1af4 100644 --- a/.gitignore +++ b/.gitignore @@ -3,8 +3,10 @@ frontend/.cache/ frontend/yarn.lock frontend/build/ .vscode/ +.idea/ config.toml node_modules -listmonk +listmonk* +cmd/listmonk* dist/* \ No newline at end of file diff --git a/cmd/init.go b/cmd/init.go index 181411d6c..b6bca261e 100644 --- a/cmd/init.go +++ b/cmd/init.go @@ -586,6 +586,9 @@ func initNotifTemplates(path string, fs stuffbin.FileSystem, i *i18n.I18n, cs *c "L": func() *i18n.I18n { return i }, + "safe": func(s string) template.HTML { + return template.HTML(s) + }, } tpls, err := stuffbin.ParseTemplatesGlob(funcs, fs, "/static/email-templates/*.html") @@ -612,7 +615,7 @@ func initNotifTemplates(path string, fs stuffbin.FileSystem, i *i18n.I18n, cs *c h := make([]byte, ln) copy(h, html[0:ln]) - if !bytes.Contains(bytes.ToLower(h), []byte("")) { + if !bytes.Contains(bytes.ToLower(h), []byte("