We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
echo-json escapes html chars (&<>)
echo-json
&<>
❯ go run echo-json.go asdf "value&asdf>" {"asdf":"value\u0026asdf\u003e"}
expected: {"asdf": "value&asdf>"}
{"asdf": "value&asdf>"}
Maybe as escape option which is disabled by default.
See: https://golang.org/pkg/encoding/json/#Encoder.SetEscapeHTML
The text was updated successfully, but these errors were encountered:
use json.Encoder to avoid HTML encoding in JSON #5
1a2bde0
Merge pull request #6 from filex/encode-flags
bc63439
solved in #6
Sorry, something went wrong.
No branches or pull requests
echo-json
escapes html chars (&<>
)expected:
{"asdf": "value&asdf>"}
Maybe as escape option which is disabled by default.
See: https://golang.org/pkg/encoding/json/#Encoder.SetEscapeHTML
The text was updated successfully, but these errors were encountered: