We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 510845f commit 1226a15Copy full SHA for 1226a15
packages/ra-ui-materialui/src/field/RichTextField.tsx
@@ -10,7 +10,7 @@ import sanitizeFieldRestProps from './sanitizeFieldRestProps';
10
import { InjectedFieldProps, PublicFieldProps, fieldPropTypes } from './types';
11
12
export const removeTags = (input: string) =>
13
- input ? input.replace(/<.+?>/gm, '') : '';
+ input ? input.replace(/<[^>]+>/gm, '') : '';
14
15
const RichTextField: FC<RichTextFieldProps> = memo<RichTextFieldProps>(
16
props => {
0 commit comments