(text)
| 198 | } |
| 199 | |
| 200 | function escapeHtml(text) { |
| 201 | return text |
| 202 | .replaceAll("&", "&") |
| 203 | .replaceAll("<", "<") |
| 204 | .replaceAll(">", ">") |
| 205 | .replaceAll('"', """) |
| 206 | .replaceAll("'", "'"); |
| 207 | } |
| 208 | |
| 209 | function sanitizeUrl(url) { |
| 210 | try { |
no outgoing calls
no test coverage detected