Skip to content
New issue

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

Disable the escaping of <, >, and & in JSON strings. #189

Closed
dadgar opened this issue Feb 14, 2017 · 5 comments
Closed

Disable the escaping of <, >, and & in JSON strings. #189

dadgar opened this issue Feb 14, 2017 · 5 comments

Comments

@dadgar
Copy link

dadgar commented Feb 14, 2017

It would be great to get the same option as Go's build in JSON encoder.

https://golang.org/pkg/encoding/json/#Encoder.SetEscapeHTML
golang/go@ab52ad8

@ugorji
Copy link
Owner

ugorji commented Feb 15, 2017

How soon do you need this fixed?

@dadgar
Copy link
Author

dadgar commented Feb 15, 2017

We are doing a release of Nomad within a week and the next one will likely be a month after that. Obviously would prefer getting it fixed for this release but given the tight timing makes total sense if it doesn't make it!

@ugorji
Copy link
Owner

ugorji commented Feb 15, 2017

K. Will release fix by tomorrow.

@ugorji ugorji closed this as completed in c88ee25 Feb 15, 2017
@ugorji
Copy link
Owner

ugorji commented Feb 15, 2017

You're welcome. Let me know how it works. Use the option: HTMLCharsAsIs=true .

@dadgar
Copy link
Author

dadgar commented Feb 15, 2017

@ugorji It worked well! Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants