MCPcopy Create free account
hub / github.com/cli/cli / escapeAlt

Function escapeAlt

internal/attachments/userasset.go:198–200  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

196)
197
198func escapeAlt(s string) string {
199 return altEscaper.Replace(s)
200}
201
202// checkAltStaysInside renders the image this asset will produce and parses it
203// back, so alt text that escapeAlt failed to neutralize is refused before the

Callers 2

attachAssetsToMarkdownFunction · 0.85
markdownMethod · 0.85

Calls 1

ReplaceMethod · 0.80

Tested by

no test coverage detected