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

Function TestEscapeHTML

v1/diff_test.go:717–734  ·  view source on GitHub ↗

In v1, JSON string encoding escapes special characters related to HTML. In v2, JSON string encoding uses a normalized representation (per RFC 8785). Users of v2 can opt into the v1 behavior by setting EscapeForHTML and EscapeForJS. Escaping HTML-specific characters in a JSON library is a layering

(t *testing.T)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

MarshalFunction · 0.92
JoinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…