(value: string)
| 123 | } |
| 124 | |
| 125 | function decodeHtmlAttribute(value: string): string { |
| 126 | return value |
| 127 | .replace(/&/g, '&') |
| 128 | .replace(/"/g, '"') |
| 129 | .replace(/'/g, "'") |
| 130 | .replace(/</g, '<') |
| 131 | .replace(/>/g, '>'); |
| 132 | } |
| 133 | |
| 134 | function ensureTrailingSlash(path: string): string { |
| 135 | return path.endsWith('/') ? path : `${path}/`; |
no outgoing calls
no test coverage detected