(text: string)
| 27 | * @internal Exported for testing |
| 28 | */ |
| 29 | export function escapeHtml(text: string): string { |
| 30 | return text |
| 31 | .replace(/&/g, '&') |
| 32 | .replace(/</g, '<') |
| 33 | .replace(/>/g, '>') |
| 34 | .replace(/"/g, '"') |
| 35 | .replace(/'/g, ''') |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * Clean up symbol names by stripping esm.sh prefixes. |
no outgoing calls
no test coverage detected