MCPcopy Index your code
hub / github.com/github/awesome-copilot / formatMultilineText

Function formatMultilineText

website/src/scripts/pages/tools-render.ts:46–48  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

44}
45
46function formatMultilineText(text: string): string {
47 return escapeHtml(text).replace(/\r?\n/g, "<br>");
48}
49
50function sanitizeToolUrl(url: string): string {
51 try {

Callers 1

renderToolsHtmlFunction · 0.85

Calls 1

escapeHtmlFunction · 0.90

Tested by

no test coverage detected