From 1226a15a72f2218d9b359f9bd573586bf5710982 Mon Sep 17 00:00:00 2001 From: fzaninotto Date: Mon, 13 Feb 2023 14:34:55 +0100 Subject: [PATCH] Rollback --- packages/ra-ui-materialui/src/field/RichTextField.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ra-ui-materialui/src/field/RichTextField.tsx b/packages/ra-ui-materialui/src/field/RichTextField.tsx index bd16e92ba42..bf9e6a53421 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 => {