(value: string)
| 10 | * Escape a string for safe interpolation into HTML text or attribute values. |
| 11 | */ |
| 12 | export const escapeHtml = (value: string): string => value.replace(/[&<>"']/g, (ch) => HTML_ESCAPES[ch]) |
| 13 | |
| 14 | /** |
| 15 | * Serialize a value for safe embedding inside an inline <script> block. |
no outgoing calls
no test coverage detected