purifyHTML.ts 120 Bytes
Newer Older
Ken's avatar
Ken committed
1 2 3 4
import DOMPurify from "dompurify";

export const purifyHTML = (htmlString: string) =>
  DOMPurify.sanitize(htmlString);