We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
preserveEscapedAttributes
1 parent ae1dc35 commit 3d2893eCopy full SHA for 3d2893e
README.md
@@ -753,6 +753,15 @@ disallowedTagsMode: `recursiveEscape`
753
754
This will transform `<disallowed>hello<p>world</p></disallowed>` to `<disallowed>hello<p>world</p></disallowed>`
755
756
+#### Escape the disallowed tag, including all its attributes.
757
+
758
+By default, disallowed attributes are stripped from escaped tags. You can set `preserveEscapedAttributes` to `true` to
759
+keep them as-is.
760
761
+```js
762
+preserveEscapedAttributes: true
763
+```
764
765
### Ignore style attribute contents
766
767
Instead of discarding faulty style attributes, you can allow them by disabling the parsing of style attributes:
0 commit comments