MCPcopy Index your code
hub / github.com/coder/coder / escapeTableCell

Function escapeTableCell

scripts/gotestsummary/main.go:467–471  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

465}
466
467func escapeTableCell(value string) string {
468 value = strings.ReplaceAll(value, "|", `\|`)
469 value = strings.NewReplacer("\r", " ", "\n", " ", "`", "`").Replace(value)
470 return html.EscapeString(value)
471}
472
473func escapeMarkdownLine(value string) string {
474 return strings.NewReplacer("\r", " ", "\n", " ").Replace(value)

Callers 1

renderMarkdownFunction · 0.85

Calls 1

ReplaceMethod · 0.80

Tested by

no test coverage detected