MCPcopy Create free account
hub / github.com/markmap/markmap / escapeScript

Function escapeScript

packages/markmap-common/src/html.ts:13–15  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

11}
12
13export function escapeScript(content: string): string {
14 return content.replace(/<(\/script>)/g, '\\x3c$2');
15}
16
17export function htmlOpen(
18 tagName: string,

Callers 1

persistJSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected