(value: unknown)
| 577 | } |
| 578 | |
| 579 | function escapeHtml(value: unknown): string { |
| 580 | return String(value) |
| 581 | .replaceAll('&', '&') |
| 582 | .replaceAll('<', '<') |
| 583 | .replaceAll('>', '>') |
| 584 | .replaceAll('"', '"') |
| 585 | .replaceAll("'", '''); |
| 586 | } |
| 587 | |
| 588 | function fetchMethod(input: Parameters<typeof fetch>[0], init: Parameters<typeof fetch>[1]): string { |
| 589 | if (init?.method) return init.method.toUpperCase(); |
no outgoing calls
no test coverage detected