MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / escapeHtml

Function escapeHtml

src/runtime/adapters/markdown.ts:15–20  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

13}
14
15function escapeHtml(text: string): string {
16 return text
17 .replace(/&/g, "&")
18 .replace(/</g, "&lt;")
19 .replace(/>/g, "&gt;");
20}
21
22function escapeHtmlAttribute(text: string): string {
23 return escapeHtml(text).replace(/"/g, "&quot;");

Callers 3

escapeHtmlAttributeFunction · 0.70
formatTelegramInlineFunction · 0.70
formatTelegramMessageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected