mirror of
https://github.com/glanceapp/glance.git
synced 2025-08-20 20:36:01 +02:00
Add safeHTML function
This commit is contained in:
@@ -21,6 +21,9 @@ var globalTemplateFunctions = template.FuncMap{
|
||||
"safeURL": func(str string) template.URL {
|
||||
return template.URL(str)
|
||||
},
|
||||
"safeHTML": func(str string) template.HTML {
|
||||
return template.HTML(str)
|
||||
},
|
||||
"absInt": func(i int) int {
|
||||
return int(math.Abs(float64(i)))
|
||||
},
|
||||
|
Reference in New Issue
Block a user