mirror of
https://github.com/knadh/listmonk.git
synced 2025-01-10 00:08:15 +08:00
Merge pull request #271 from TomBoss/master
Adding Safe templating function for keeping HTML comments
This commit is contained in:
commit
99ff64bd82
1 changed files with 3 additions and 0 deletions
|
@ -353,6 +353,9 @@ func (m *Manager) TemplateFuncs(c *models.Campaign) template.FuncMap {
|
|||
"L": func() *i18n.I18n {
|
||||
return m.i18n
|
||||
},
|
||||
"Safe": func(safeHTML string) template.HTML {
|
||||
return template.HTML(safeHTML)
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue