mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-21 19:39:28 -05:00
64db29417d
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
11 lines
386 B
TypeScript
11 lines
386 B
TypeScript
import * as DOMPurify from "dompurify";
|
|
|
|
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: DOMPurify.sanitize(htmlString) }}></label>
|
|
);
|
|
}
|