MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / ReplaceEntitiesBytes

Function ReplaceEntitiesBytes

xmlparser/entities.go:57–59  ·  view source on GitHub ↗

ReplaceEntitiesBytes replaces XML entities in the given byte slice according to the provided entity map.

(data []byte, em map[string][]byte)

Source from the content-addressed store, hash-verified

55// ReplaceEntitiesBytes replaces XML entities in the given byte slice
56// according to the provided entity map.
57func ReplaceEntitiesBytes(data []byte, em map[string][]byte) []byte {
58 return replaceEntities(data, em, bytes.IndexByte)
59}
60
61// ReplaceEntitiesString replaces XML entities in the given string
62// according to the provided entity map.

Callers 3

TestReplaceEntitiesFunction · 0.92
replaceEntitiesMethod · 0.85

Calls 1

replaceEntitiesFunction · 0.85

Tested by 2

TestReplaceEntitiesFunction · 0.74