Merge pull request #271 from TomBoss/master
Adding Safe templating function for keeping HTML comments
This commit is contained in:
commit
99ff64bd82
|
@ -353,6 +353,9 @@ func (m *Manager) TemplateFuncs(c *models.Campaign) template.FuncMap {
|
||||||
"L": func() *i18n.I18n {
|
"L": func() *i18n.I18n {
|
||||||
return m.i18n
|
return m.i18n
|
||||||
},
|
},
|
||||||
|
"Safe": func(safeHTML string) template.HTML {
|
||||||
|
return template.HTML(safeHTML)
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue