MCPcopy Index your code
hub / github.com/SignTools/SignTools / escapeXML

Function escapeXML

main.go:518–524  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

516}
517
518func escapeXML(str string) (string, error) {
519 buff := bytes.NewBuffer(nil)
520 if err := xml.EscapeText(buff, []byte(str)); err != nil {
521 return "", err
522 }
523 return buff.String(), nil
524}
525
526func getSignedApp(c echo.Context, app storage.App) error {
527 file, err := app.GetFile(storage.AppSignedFile)

Callers 2

TestEscapeXMLFunction · 0.85
makeManifestFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestEscapeXMLFunction · 0.68