MCPcopy Create free account
hub / github.com/XmirrorSecurity/OpenSCA-cli / EscapeText

Function EscapeText

opensca/sca/java/xml/xml.go:1902–1904  ·  view source on GitHub ↗

EscapeText writes to w the properly escaped XML equivalent of the plain text data s.

(w io.Writer, s []byte)

Source from the content-addressed store, hash-verified

1900// EscapeText writes to w the properly escaped XML equivalent
1901// of the plain text data s.
1902func EscapeText(w io.Writer, s []byte) error {
1903 return escapeText(w, s, true)
1904}
1905
1906// escapeText writes to w the properly escaped XML equivalent
1907// of the plain text data s. If escapeNewline is true, newline

Callers 4

EscapeFunction · 0.85
createAttrPrefixMethod · 0.85
marshalValueMethod · 0.85
marshalTextInterfaceMethod · 0.85

Calls 1

escapeTextFunction · 0.85

Tested by

no test coverage detected