(text)
| 16 | } |
| 17 | |
| 18 | function escapeHtml(text) { |
| 19 | return text |
| 20 | .replace(/&/g, "&") |
| 21 | .replace(/</g, "<") |
| 22 | .replace(/>/g, ">") |
| 23 | .replace(/"/g, """); |
| 24 | } |
| 25 | |
| 26 | function escapeRegExp(string) { |
| 27 | return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); |
no outgoing calls
no test coverage detected