(value: string)
| 26 | export const dynamic = 'force-dynamic' |
| 27 | |
| 28 | function escapeHtml(value: string): string { |
| 29 | return value |
| 30 | .replace(/&/g, '&') |
| 31 | .replace(/</g, '<') |
| 32 | .replace(/>/g, '>') |
| 33 | .replace(/"/g, '"') |
| 34 | .replace(/'/g, ''') |
| 35 | } |
| 36 | |
| 37 | function jsonLiteral(value: string | undefined): string { |
| 38 | if (value === undefined) return 'undefined' |