Files
calendar/packages/features/form-builder/fieldsThatSupportLabelAsSafeHtml.ts
T
Hariom BalharaandGitHub 61f1a3b21e feat: Support adding links to checkbox type question using markdown[Blocked on another PR] (#8943)
* Support adding links in boolean checkbox

* Fix and comment

* remove textarea, it was accidentally pushed.
2023-07-21 23:30:28 +05:30

8 lines
311 B
TypeScript

import type { FieldType } from "./schema";
/**
* Once a component supports `labelAsSafeHtml`, add it's field's type here
* A whitelist is needed because unless we explicitly use dangerouslySetInnerHTML, React will escape the HTML
*/
export const fieldsThatSupportLabelAsSafeHtml: FieldType[] = ["boolean"];