mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-06 05:40:02 -06:00
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>
|
|
);
|
|
}
|