Skip to content

Commit 1226a15

Browse files
committed
Rollback
1 parent 510845f commit 1226a15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ra-ui-materialui/src/field/RichTextField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import sanitizeFieldRestProps from './sanitizeFieldRestProps';
1010
import { InjectedFieldProps, PublicFieldProps, fieldPropTypes } from './types';
1111

1212
export const removeTags = (input: string) =>
13-
input ? input.replace(/<.+?>/gm, '') : '';
13+
input ? input.replace(/<[^>]+>/gm, '') : '';
1414

1515
const RichTextField: FC<RichTextFieldProps> = memo<RichTextFieldProps>(
1616
props => {

0 commit comments

Comments
 (0)