mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-06 05:40:02 -06:00
12 lines
447 B
TypeScript
12 lines
447 B
TypeScript
/* import { cleanHtml } from "../../lib/cleanHtml"; */
|
|
import { cleanHtml } from "@formbricks/lib/cleanHtml";
|
|
|
|
export default function HtmlBody({ htmlString, questionId }: { htmlString: string; questionId: string }) {
|
|
return (
|
|
<label
|
|
htmlFor={questionId}
|
|
className="fb-block fb-font-normal fb-leading-6 text-sm text-slate-500 dark:text-slate-300"
|
|
dangerouslySetInnerHTML={{ __html: cleanHtml(htmlString) }}></label>
|
|
);
|
|
}
|