Skip to content

Commit 1f22074

Browse files
committed
Fix liquid error
1 parent a2d9e85 commit 1f22074

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/RichTextField.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,20 @@ import { RichTextField } from 'react-admin';
3838

3939
<RichTextField source="body" stripTags />
4040
```
41+
4142
## `purifyOptions`
4243

4344
The `purifyOptions` prop allows to pass additional options to the DomPurify library when calling `sanitize()`.
4445

4546
For instance you can use the `ADD_ATTR` option to allow additional attributes, like `'target'`:
4647

48+
{% raw %}
4749
```jsx
4850
import { RichTextField } from 'react-admin';
4951

5052
<RichTextField source="body" purifyOptions={{ ADD_ATTR: ['target'] }} />
5153
```
54+
{% endraw %}
5255

5356
**Tip:** More available options can be found in the [DomPurify Readme](https://github.com/cure53/DOMPurify#can-i-configure-dompurify).
5457

0 commit comments

Comments
 (0)