(s: string)
| 4 | * user input, external data) go inside `<tag>${here}</tag>`. |
| 5 | */ |
| 6 | export function escapeXml(s: string): string { |
| 7 | return s.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>') |
| 8 | } |
| 9 | |
| 10 | /** |
| 11 | * Escape for interpolation into a double- or single-quoted attribute value: |
no outgoing calls
no test coverage detected