const entityMap: { [key: string]: string } = {
  "&": "&",
  "<": "&lt;",
  ">": "&gt;",
  '"': "&quot;",
  "'": "&#39;",
  "/": "&#x2F;",
};

export function sanitizeHtml(html: string) {
  return String(html).replace(/[&<>"'\/]/g, (key) => entityMap[key]);
}