SetEscapeHTML is documented at https://golang.org/pkg/encoding/json/#Encoder.SetEscapeHTML
(on bool)
| 543 | |
| 544 | // SetEscapeHTML is documented at https://golang.org/pkg/encoding/json/#Encoder.SetEscapeHTML |
| 545 | func (enc *Encoder) SetEscapeHTML(on bool) { |
| 546 | if on { |
| 547 | enc.flags |= EscapeHTML |
| 548 | } else { |
| 549 | enc.flags &= ^EscapeHTML |
| 550 | } |
| 551 | } |
| 552 | |
| 553 | // SetIndent is documented at https://golang.org/pkg/encoding/json/#Encoder.SetIndent |
| 554 | func (enc *Encoder) SetIndent(prefix, indent string) { |