| const ESCAPE_SCRIPT_END = /<\/script>/gi; | |
| const ESCAPE_LINE_TERMS = /[\u2028\u2029]/g; | |
| /** @internal */ | |
| export function escapeJson(spec) { | |
| return JSON.stringify(spec).replace(ESCAPE_SCRIPT_END, "<\\/script>").replace(ESCAPE_LINE_TERMS, c => c === "\u2028" ? "\\u2028" : "\\u2029"); | |
| } | |
| /** @internal */ | |
| export function escape(str) { | |
| return str.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"); | |
| } | |
| //# sourceMappingURL=html.js.map |
Xet Storage Details
- Size:
- 448 Bytes
- Xet hash:
- e1d7f92a3b169abe516cab54b826eed93b90819238da5cb7a4254094926acc4e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.