You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the responder.go file, the JSON function sets escapeHTML to true.
However, the json.NewEncoder defaults to escapeHTML: true.
This appears to be redundant.
https://github.com/go-chi/render/blob/14f1cb3d5c2969d6e462632a205eacb6421eb4dc/responder.go#L95C2-L96C25
In the
responder.go
file, the JSON function setsescapeHTML
to true.However, the
json.NewEncoder
defaults toescapeHTML: true
.This appears to be redundant.
Source code for json.NewEncoder:
The text was updated successfully, but these errors were encountered: