(text: string)
| 13 | } |
| 14 | |
| 15 | function escapeHtml(text: string): string { |
| 16 | return text |
| 17 | .replace(/&/g, "&") |
| 18 | .replace(/</g, "<") |
| 19 | .replace(/>/g, ">"); |
| 20 | } |
| 21 | |
| 22 | function escapeHtmlAttribute(text: string): string { |
| 23 | return escapeHtml(text).replace(/"/g, """); |
no outgoing calls
no test coverage detected