diff --git a/packages/ra-ui-materialui/src/field/RichTextField.tsx b/packages/ra-ui-materialui/src/field/RichTextField.tsx index bf9e6a53421..bd16e92ba42 100644 --- a/packages/ra-ui-materialui/src/field/RichTextField.tsx +++ b/packages/ra-ui-materialui/src/field/RichTextField.tsx @@ -10,7 +10,7 @@ import sanitizeFieldRestProps from './sanitizeFieldRestProps'; import { InjectedFieldProps, PublicFieldProps, fieldPropTypes } from './types'; export const removeTags = (input: string) => - input ? input.replace(/<[^>]+>/gm, '') : ''; + input ? input.replace(/<.+?>/gm, '') : ''; const RichTextField: FC = memo( props => {