Skip to content

Commit

Permalink
Merge pull request #271 from TomBoss/master
Browse files Browse the repository at this point in the history
Adding Safe templating function for keeping HTML comments
  • Loading branch information
knadh authored Feb 15, 2021
2 parents 97b78aa + 50549f3 commit 99ff64b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
}
}

Expand Down

0 comments on commit 99ff64b

Please sign in to comment.