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

Function Escape

opensca/sca/java/xml/xml.go:1996–1998  ·  view source on GitHub ↗

Escape is like EscapeText but omits the error return value. It is provided for backwards compatibility with Go 1.0. Code targeting Go 1.1 or later should use EscapeText.

(w io.Writer, s []byte)

Source from the content-addressed store, hash-verified

1994// It is provided for backwards compatibility with Go 1.0.
1995// Code targeting Go 1.1 or later should use EscapeText.
1996func Escape(w io.Writer, s []byte) {
1997 EscapeText(w, s)
1998}
1999
2000var (
2001 cdataStart = []byte("<![CDATA[")

Callers

nothing calls this directly

Calls 1

EscapeTextFunction · 0.85

Tested by

no test coverage detected