]> Cypherpunks repositories - gostls13.git/commit
encoding/json: change DisableHTMLEscaping to SetEscapeHTML
authorRuss Cox <rsc@golang.org>
Mon, 23 May 2016 15:41:00 +0000 (11:41 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 24 May 2016 14:25:43 +0000 (14:25 +0000)
commit4aea7a12b6a6621a67267050df0688f28adfe6b4
tree5992d640d6673e7d68829c77aafd37645bd32844
parent658814fa386a08761032b659f64f4eecb79ca084
encoding/json: change DisableHTMLEscaping to SetEscapeHTML

DisableHTMLEscaping is now SetEscapeHTML, allowing the escaping
to be toggled, not just disabled. This API is new for Go 1.7,
so there are no compatibility concerns (quite the opposite,
the point is to fix the API before we commit to it in Go 1.7).

Change-Id: I96b9f8f169a9c44995b8a157a626eb62d0b6dea7
Reviewed-on: https://go-review.googlesource.com/23293
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/encoding/json/stream.go
src/encoding/json/stream_test.go