Don't escape JSON data as HTML

This commit is contained in:
Elara 2024-03-01 23:25:29 +00:00
parent 314b0af456
commit b4bc463326

View File

@ -36,7 +36,7 @@ func tmplLen(v any) (int, error) {
} }
} }
func tmplJSON(v any) (string, error) { func tmplJSON(v any) (HTML, error) {
data, err := json.Marshal(v) data, err := json.Marshal(v)
return string(data), err return HTML(data), err
} }