Files
formbricks/apps/web/components/preview/HtmlBody.tsx
T
Matti Nannt 7eefdd336c Add CTA Question Type (#246)
* add CTA question type together with new Text Editor based on Lexical and CTA summary

---------

Co-authored-by: moritzrengert <moritz@rengert.de>
2023-04-24 20:13:39 +02:00

11 lines
375 B
TypeScript

import { cleanHtml } from "@formbricks/lib/cleanHtml";
export default function HtmlBody({ htmlString, questionId }: { htmlString: string; questionId: string }) {
return (
<label
htmlFor={questionId}
className="fb-block fb-text-sm fb-font-normal fb-leading-6 text-slate-600"
dangerouslySetInnerHTML={{ __html: cleanHtml(htmlString) }}></label>
);
}