Merge pull request #271 from TomBoss/master

Adding Safe templating function for keeping HTML comments
This commit is contained in:
Kailash Nadh 2021-02-15 18:43:49 +05:30 committed by GitHub
commit 99ff64bd82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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)
},
}
}