Skip to content

Commit

Permalink
encoding/json: add Encoder.DisableHTMLEscaping
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cespare authored and bradfitz committed Apr 22, 2016
1 parent 9736009 commit ab52ad8
Show file tree
Hide file tree
Showing 4 changed files with 150 additions and 93 deletions.

0 comments on commit ab52ad8

Please sign in to comment.