MCPcopy Create free account
hub / github.com/JacobLinCool/LeetCode-Stats-Card / escape

Function escape

packages/core/src/item.ts:77–79  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

75};
76
77function escape(str: string): string {
78 return str.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
79}

Callers 1

stringifyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected