1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-26 18:21:01 +00:00

feat: add custom user JavaScript

This commit is contained in:
milhnl 2024-10-06 01:54:11 +02:00 committed by GitHub
parent f16735fd6d
commit e07203ad46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 89 additions and 32 deletions

View file

@ -56,6 +56,9 @@ func (f *funcMap) Map() template.FuncMap {
"safeCSS": func(str string) template.CSS {
return template.CSS(str)
},
"safeJS": func(str string) template.JS {
return template.JS(str)
},
"noescape": func(str string) template.HTML {
return template.HTML(str)
},