Skip to content

Commit

Permalink
Fix security warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Feb 13, 2023
1 parent fcc5f9e commit 510845f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/field/RichTextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<RichTextFieldProps> = memo<RichTextFieldProps>(
props => {
Expand Down

0 comments on commit 510845f

Please sign in to comment.