MCPcopy Index your code
hub / github.com/codeaashu/claude-code / escapeHtml

Function escapeHtml

web/lib/export/html.ts:4–11  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

2import { extractTextContent } from "../utils";
3
4function escapeHtml(str: string): string {
5 return str
6 .replace(/&/g, "&")
7 .replace(/</g, "&lt;")
8 .replace(/>/g, "&gt;")
9 .replace(/"/g, "&quot;")
10 .replace(/'/g, "&#039;");
11}
12
13function renderMessageHtml(msg: Message, options: ExportOptions): string {
14 const isUser = msg.role === "user";

Callers 6

renderMessageHtmlFunction · 0.70
toHTMLFunction · 0.70
escapeHtmlWithBoldFunction · 0.50
generateBarChartFunction · 0.50
markdownToHtmlFunction · 0.50
generateHtmlReportFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected