MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / EscapeText

Function EscapeText

server/webdav/internal/xml/xml.go:1876–1878  ·  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

1874// EscapeText writes to w the properly escaped XML equivalent
1875// of the plain text data s.
1876func EscapeText(w io.Writer, s []byte) error {
1877 return escapeText(w, s, true)
1878}
1879
1880// escapeText writes to w the properly escaped XML equivalent
1881// of the plain text data s. If escapeNewline is true, newline

Callers 7

TestEscapeTextIOErrorsFunction · 0.85
EscapeFunction · 0.85
writeNamespacesMethod · 0.85
marshalValueMethod · 0.85
marshalTextInterfaceMethod · 0.85
marshalStructMethod · 0.85

Calls 1

escapeTextFunction · 0.85

Tested by 2

TestEscapeTextIOErrorsFunction · 0.68