MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / looseEscapeHTML

Function looseEscapeHTML

packages/extension/utils/string.ts:34–36  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

32}
33
34export function looseEscapeHTML(str: string) {
35 return str.replaceAll('"', '"')
36}
37
38const JS_SINGLE_QUOTE_ESCAPE_RE = /['\\\r\n\u2028\u2029]/g
39const JS_TEMPLATE_LITERAL_ESCAPE_RE = /[`\\]|\$\{/g

Callers 2

stringifyVueComponentFunction · 0.90
string.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected