MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / htmlEscape

Function htmlEscape

e2e/scripts/pr-media.ts:143–144  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

141};
142
143const htmlEscape = (value: string): string =>
144 value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
145
146const renderUrlBars = async (
147 segments: ReadonlyArray<UrlSegment>,

Callers 1

renderUrlBarsFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected