(text: string)
| 153 | } |
| 154 | |
| 155 | static escapeHtml(text: string): string { |
| 156 | return text |
| 157 | .replace(/&/g, '&') |
| 158 | .replace(/</g, '<') |
| 159 | .replace(/>/g, '>') |
| 160 | .replace(/"/g, '"') |
| 161 | .replace(/'/g, '''); |
| 162 | } |
| 163 | |
| 164 | static sanitizeHtmlForTelegraph(htmlContent: string): string { |
| 165 | const allowedTags = new Set([ |
no outgoing calls
no test coverage detected