(str: string)
| 22 | const ATTRIBUTE_ESCAPE_REGEX = /[&"'<>]/g |
| 23 | |
| 24 | export function htmlEscapeJsonString(str: string): string { |
| 25 | return str.replace(ESCAPE_REGEX, (match) => ESCAPE_LOOKUP[match]) |
| 26 | } |
| 27 | |
| 28 | export function htmlEscapeAttributeString(str: string): string { |
| 29 | return str.replace( |
no test coverage detected