(str: string)
| 11 | |
| 12 | /** @internal */ |
| 13 | export function escape(str: string): string { |
| 14 | return str |
| 15 | .replace(/&/g, "&") |
| 16 | .replace(/</g, "<") |
| 17 | .replace(/>/g, ">") |
| 18 | } |
| 19 | |
| 20 | /** @internal */ |
| 21 | export function escapeAttribute(str: string): string { |
no test coverage detected