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
{{ message }}
Repository navigation
> character is not decoded properly when applying json patches #198
The reason for this is that encoding/json escapes for HTML inclusion by default. I'm not sure I want to change that at this stage of the game, it could subtle break anyone that uses the output directly.
Hmm, is it possible to get a new ApplyOption that allows us to SetEscapeHTML(false) on the json encoder? That's how you would normally work around this in the encoding/json library
Activity
evanphx commentedon Jan 16, 2024
The reason for this is that encoding/json escapes for HTML inclusion by default. I'm not sure I want to change that at this stage of the game, it could subtle break anyone that uses the output directly.
nvelat commentedon Jan 16, 2024
Hmm, is it possible to get a new
ApplyOptionthat allows us toSetEscapeHTML(false)on the json encoder? That's how you would normally work around this in theencoding/jsonlibraryevanphx commentedon Jan 28, 2024
5.9.0 includes a new
EscapeHTMLvalue on ApplyOptions you can set to control this behavior.