1
0
mirror of https://github.com/golang/go synced 2024-10-04 21:21:22 -06:00
go/src/encoding
Caleb Spare ab52ad894f encoding/json: add Encoder.DisableHTMLEscaping
This provides a way to disable the escaping of <, >, and & in JSON
strings.

Fixes #14749.

Change-Id: I1afeb0244455fc8b06c6cce920444532f229555b
Reviewed-on: https://go-review.googlesource.com/21796
Run-TryBot: Caleb Spare <cespare@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-04-22 21:35:56 +00:00
..
ascii85 all: single space after period. 2016-03-02 00:13:47 +00:00
asn1 all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
base32 all: single space after period. 2016-03-02 00:13:47 +00:00
base64 encoding/base64: correct DecodedLen overestimate for unpadded encodings 2016-03-15 20:43:04 +00:00
binary all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
csv all: single space after period. 2016-03-02 00:13:47 +00:00
gob encoding/gob: document compatibility 2016-04-22 00:14:27 +00:00
hex all: single space after period. 2016-03-02 00:13:47 +00:00
json encoding/json: add Encoder.DisableHTMLEscaping 2016-04-22 21:35:56 +00:00
pem all: single space after period. 2016-03-02 00:13:47 +00:00
xml all: use bytes.Equal, bytes.Contains and strings.Contains 2016-04-01 02:05:01 +00:00
encoding.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00