1
0
mirror of https://github.com/glanceapp/glance.git synced 2025-07-15 05:55:05 +02:00

Add safeHTML function

This commit is contained in:
Svilen Markov
2025-05-15 14:21:59 +01:00
parent af04605d7d
commit 1ace129a58

@ -21,6 +21,9 @@ var globalTemplateFunctions = template.FuncMap{
"safeURL": func(str string) template.URL { "safeURL": func(str string) template.URL {
return template.URL(str) return template.URL(str)
}, },
"safeHTML": func(str string) template.HTML {
return template.HTML(str)
},
"absInt": func(i int) int { "absInt": func(i int) int {
return int(math.Abs(float64(i))) return int(math.Abs(float64(i)))
}, },