MCPcopy Create free account
hub / github.com/go-json-experiment/json / SetEscapeHTML

Method SetEscapeHTML

v1/stream.go:181–185  ·  view source on GitHub ↗

SetEscapeHTML specifies whether problematic HTML characters should be escaped inside JSON quoted strings. The default behavior is to escape &, <, and > to \u0026, \u003c, and \u003e to avoid certain safety problems that can arise when embedding JSON in HTML. In non-HTML settings where the escaping

(on bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestEncoderSetEscapeHTMLFunction · 0.95

Calls 1

EscapeForHTMLFunction · 0.92

Tested by 1

TestEncoderSetEscapeHTMLFunction · 0.76