(str: string)
| 5 | import { RenderTemplateOptions } from "./types.js"; |
| 6 | |
| 7 | const htmlEscape = (str: string) => |
| 8 | str |
| 9 | .replace(/&/g, "&") |
| 10 | .replace(/"/g, """) |
| 11 | .replace(/'/g, "'") |
| 12 | .replace(/</g, "<") |
| 13 | .replace(/>/g, ">"); |
| 14 | |
| 15 | const buildHtmlTemplate = (title: string, script: string, nodesData: string, style: string) => |
| 16 | ` |