(value: string)
| 1 | import type { DeepnoteBlock, ImageBlock } from '../deepnote-file/deepnote-file-schema' |
| 2 | |
| 3 | function escapeHtmlAttribute(value: string): string { |
| 4 | return value |
| 5 | .replace(/&/g, '&') |
| 6 | .replace(/</g, '<') |
| 7 | .replace(/>/g, '>') |
| 8 | .replace(/"/g, '"') |
| 9 | .replace(/'/g, ''') |
| 10 | } |
| 11 | |
| 12 | function sanitizeWidth(width: string): string { |
| 13 | // Extract only numeric characters |
no outgoing calls
no test coverage detected