/** Escape for safe insertion into HTML text nodes (newsletter, previews). */ export function escapeHtmlText(s: string): string { return s .replace(/&/g, "&") .replace(//g, ">") .replace(/"/g, """) .replace(/'/g, "'") }