(value)
| 2402 | } |
| 2403 | |
| 2404 | function htmlDecode(value) { |
| 2405 | return String(value || "") |
| 2406 | .replace(/&/g, "&") |
| 2407 | .replace(/</g, "<") |
| 2408 | .replace(/>/g, ">") |
| 2409 | .replace(/"/g, "\"") |
| 2410 | .replace(/'/g, "'") |
| 2411 | .replace(/&#x([0-9a-f]+);/gi, (_, hex) => String.fromCodePoint(parseInt(hex, 16))) |
| 2412 | .replace(/&#(\d+);/g, (_, num) => String.fromCodePoint(Number(num))); |
| 2413 | } |
| 2414 | |
| 2415 | function normalizeDuckDuckGoUrl(url) { |
| 2416 | try { |
no outgoing calls
no test coverage detected