2
0
Files
cal/calcom/packages/features/form-builder/fieldsThatSupportLabelAsSafeHtml.ts

8 lines
311 B
TypeScript
Raw Normal View History

2024-08-09 00:39:27 +02:00
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"];