MCPcopy Create free account
hub / github.com/segmentio/encoding / SetEscapeHTML

Method SetEscapeHTML

json/json.go:545–551  ·  view source on GitHub ↗

SetEscapeHTML is documented at https://golang.org/pkg/encoding/json/#Encoder.SetEscapeHTML

(on bool)

Source from the content-addressed store, hash-verified

543
544// SetEscapeHTML is documented at https://golang.org/pkg/encoding/json/#Encoder.SetEscapeHTML
545func (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
554func (enc *Encoder) SetIndent(prefix, indent string) {

Callers 1

TestMainFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestMainFunction · 0.76