MCPcopy Create free account
hub / github.com/crufter/goquery / EscapeString

Function EscapeString

exp/html/escape.go:236–243  ·  view source on GitHub ↗

EscapeString escapes special characters like "<" to become "&lt;". It escapes only five such characters: <, >, &, ' and ". UnescapeString(EscapeString(s)) == s always holds, but the converse isn't always true.

(s string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestUnescapeEscapeFunction · 0.85
StringMethod · 0.85

Calls 2

escapeFunction · 0.85
StringMethod · 0.45

Tested by 1

TestUnescapeEscapeFunction · 0.68