(str: string)
| 28 | const ESCAPE_RE = /[&<>"]/g |
| 29 | |
| 30 | export function escapeHTML(str: string) { |
| 31 | return str.replace(ESCAPE_RE, (match) => ESCAPE_MAP[match]) |
| 32 | } |
| 33 | |
| 34 | export function looseEscapeHTML(str: string) { |
| 35 | return str.replaceAll('"', '"') |
no outgoing calls
no test coverage detected