export function escapeHtml(input: string): string { return input .replaceAll("&", "&") .replaceAll("<", "<") .replaceAll(">", ">") .replaceAll('"', """) .replaceAll("'", "'"); } export function escapeAttr(input: string): string { return escapeHtml(input).replaceAll("`", "`"); }