diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-02-16 17:20:41 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-02-18 22:45:54 -0700 |
commit | 2eb60b8be25a4b0fe3f1c5d5ca302e7e68190bad (patch) | |
tree | 0a4001f1e37d8e3a29fa3f569fa7f850c0d9f766 /ReleaseNotes.md | |
parent | 1a5b0561f53441d8a259a5096281699b5af16a6c (diff) |
compat/json: Don't do actual JSON parsing in HTMLEscape
Diffstat (limited to 'ReleaseNotes.md')
-rw-r--r-- | ReleaseNotes.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ReleaseNotes.md b/ReleaseNotes.md index ae147b1..c949fd6 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -24,6 +24,11 @@ + compat/json.Compact, compat/json.Indent: No longer compact floating-point numbers; as `encoding/json` doesn't. + + compat/json.HTMLEscape: Just look for problematic UTF-8 runes, + don't actually parse as JSON. This is consistent with the + function's lack of an `error` return value, and with the + behavior of `encoding/json`. + - Unicode: + Feature: Encoder, ReEncoder: Add an `InvalidUTF8` |