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

Function EscapeForHTML

jsontext/alias.go:258–260  ·  view source on GitHub ↗

EscapeForHTML specifies that '<', '>', and '&' characters within JSON strings should be escaped as a hexadecimal Unicode codepoint (e.g., \u003c) so that the output is safe to embed within HTML. This only affects encoding and is ignored when decoding.

(v bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

SetEscapeHTMLMethod · 0.92
ExampleEscapeForHTMLFunction · 0.92
FuzzValueFormatFunction · 0.70

Calls

no outgoing calls

Tested by 2

ExampleEscapeForHTMLFunction · 0.74
FuzzValueFormatFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…