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
Fixes#839
Note, I considered using `gjson.AppendJSONString` for better
performance, but it currently doesn't have an option to disable escaping
of HTML characters - which I think would be undesirable here. See
tidwall/gjson#362
---------
Co-authored-by: Sergiy 🇺🇦 <[email protected]>
It seems that
gjson.AppendJsonString
always escapes HTML characters.gjson/gjson.go
Lines 1943 to 1945 in c2bc5a4
Can we get an option to disable that for non-HTML scenarios?
There is precedent with other encoders:
encoding/json
hasEncoder.SetEscapeHTML(false)
Java's gjson has
disableHtmlEscaping()
Thanks.
The text was updated successfully, but these errors were encountered: