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 a2d9e85 commit 1f22074Copy full SHA for 1f22074
docs/RichTextField.md
@@ -38,17 +38,20 @@ import { RichTextField } from 'react-admin';
38
39
<RichTextField source="body" stripTags />
40
```
41
+
42
## `purifyOptions`
43
44
The `purifyOptions` prop allows to pass additional options to the DomPurify library when calling `sanitize()`.
45
46
For instance you can use the `ADD_ATTR` option to allow additional attributes, like `'target'`:
47
48
+{% raw %}
49
```jsx
50
import { RichTextField } from 'react-admin';
51
52
<RichTextField source="body" purifyOptions={{ ADD_ATTR: ['target'] }} />
53
54
+{% endraw %}
55
56
**Tip:** More available options can be found in the [DomPurify Readme](https://github.com/cure53/DOMPurify#can-i-configure-dompurify).
57
0 commit comments