Skip to content

Commit 1dd037c

Browse files
committed
Fix security warning
1 parent e5bfbe2 commit 1dd037c

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
@@ -76,4 +76,4 @@ export interface RichTextFieldProps
7676
RichTextField.displayName = 'RichTextField';
7777

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

0 commit comments

Comments
 (0)