/* eslint-disable react/no-danger */ import { toSanitizedHtml } from "@/lib/sanitize-html"; type SafeHtmlProps = { html: string; className?: string; as?: "div" | "p" | "span"; }; export default function SafeHtml({ html, className, as = "div", }: Readonly) { if (as === "p") { return (

); } if (as === "span") { return ( ); } return (

); }