fix: Correct import of markdownToSafeHtml on the client (#18195)

* chore: markdowntosafeHtml refactor

* update

* Update
This commit is contained in:
Anik Dhabal Babu authored and GitHub committed 2025-04-02 14:41:33 +05:30
1 parent 8f2cb0522d
commit f5750f3933
11 files changed
+22 -22

No files matched your search

@@ -3,7 +3,7 @@ import { useId } from "@radix-ui/react-id";
import type { InputHTMLAttributes } from "react";
import React, { forwardRef } from "react";
import { markdownToSafeHTML } from "@calcom/lib/markdownToSafeHTML";
import { markdownToSafeHTMLClient } from "@calcom/lib/markdownToSafeHTMLClient";
import classNames from "@calcom/ui/classNames";
import { Icon } from "../../icon";
@@ -101,7 +101,7 @@ const CheckboxField = forwardRef<HTMLInputElement, Props>(
)}
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{
__html: markdownToSafeHTML(descriptionAsSafeHtml),
__html: markdownToSafeHTMLClient(descriptionAsSafeHtml),
}}
/>
) : (