Skip to content

Commit f07ce9d

Browse files
benelliottbenelliottgsa
authored andcommitted
README.md: Add warning on usage of preserveEscapedAttributes
1 parent 27de3a8 commit f07ce9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ This will transform `<disallowed>hello<p>world</p></disallowed>` to `&lt;disallo
756756
#### Escape the disallowed tag, including all its attributes.
757757

758758
By default, disallowed attributes are stripped from escaped tags. You can set `preserveEscapedAttributes` to `true` to
759-
keep them as-is.
759+
keep them as-is. Note that is intended mainly for development or trusted workflows, and may preserve dangerous attributes as escaped text.
760760

761761
```js
762762
preserveEscapedAttributes: true

0 commit comments

Comments
 (0)