This component displays some HTML content. The content is β€œrich” (i.e. unescaped) by default.

import { RichTextField } from 'react-admin';

<RichTextField source="body" />



Prop Required Type Default Description
stripTags Optional boolean false If true, remove all HTML tags and render text only

<RichTextField> also accepts the common field props.


The stripTags prop allows to remove all HTML markup, preventing some display glitches (which is especially useful in list views, or when truncating the content).

import { RichTextField } from 'react-admin';

<RichTextField source="body" stripTags />