Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 | 8x 8x 3341x | const ENTITIES: Record<string, string> = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" };
/** Escapes text for use inside HTML or SVG markup, in content or attribute values. */
export const escape = (text: string | number): string =>
String(text).replace(/[&<>"']/g, (c) => ENTITIES[c]);
|