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

refactor(template): rename noescape to safeHTML

This makes the code more consistent, since all the other escaping escape
hatches have a `safe` prefix.
This commit is contained in:
jvoisin 2025-08-22 13:45:05 +02:00 committed by Frédéric Guillot
parent da9c3a4032
commit 4f252b33c9
2 changed files with 3 additions and 3 deletions

View file

@ -60,7 +60,7 @@ func (f *funcMap) Map() template.FuncMap {
"safeJS": func(str string) template.JS {
return template.JS(str)
},
"noescape": func(str string) template.HTML {
"safeHTML": func(str string) template.HTML {
return template.HTML(str)
},
"proxyFilter": func(data string) string {

View file

@ -280,9 +280,9 @@
{{ end }}
{{ if .user }}
{{ noescape (proxyFilter .entry.Content) }}
{{ safeHTML (proxyFilter .entry.Content) }}
{{ else }}
{{ noescape .entry.Content }}
{{ safeHTML .entry.Content }}
{{ end }}
</article>
{{ if .entry.Enclosures }}