@@ -2,7 +2,7 @@ import { useFormContext } from 'react-hook-form';
22import { Fragment , useEffect , useRef } from 'react' ;
33import omit from 'lodash.omit' ;
44import { baseFields } from '@/src/components/form/fields/baseFields' ;
5- import { cn , sanitizeHtml } from '@/src/lib/utils' ;
5+ import { cn } from '@/src/lib/utils' ;
66import { $TSFixMe , Components } from '@/src/types/remoteFlows' ;
77import { Statement } from '@/src/components/form/Statement' ;
88import { useFormFields } from '@/src/context' ;
@@ -12,6 +12,7 @@ import { BaseTypes, SupportedTypes } from './types';
1212import { StatementComponentProps } from '@/src/types/fields' ;
1313import { checkFieldHasForcedValue } from '@/src/components/form/utils' ;
1414import { ForcedValueField } from '@/src/components/form/fields/ForcedValueField' ;
15+ import { BaseFormDescription } from '@/src/components/ui/form' ;
1516
1617type FieldBase = {
1718 label : string ;
@@ -210,10 +211,12 @@ export function FieldSetField({
210211 { isExpanded && (
211212 < div id = { contentId } aria-labelledby = { headerId } role = 'region' >
212213 { description ? (
213- < div
214+ < BaseFormDescription
215+ as = 'div'
214216 className = 'mb-5 RemoteFlows__FieldSetField__Description'
215- dangerouslySetInnerHTML = { { __html : sanitizeHtml ( description ) } }
216- />
217+ >
218+ { description }
219+ </ BaseFormDescription >
217220 ) : null }
218221 < div className = 'grid gap-4' >
219222 { fields . map ( ( field : $TSFixMe ) => {
0 commit comments