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 7d21250 commit ac5c29cCopy full SHA for ac5c29c
README.md
@@ -173,6 +173,9 @@ var clean = DOMPurify.sanitize(dirty, {ADD_TAGS: ['my-tag']});
173
// extend the existing array of attributes
174
var clean = DOMPurify.sanitize(dirty, {ADD_ATTR: ['my-attr']});
175
176
+// extend the existing array of tags that can use Data URIs
177
+var clean = DOMPurify.sanitize(dirty, {ADD_DATA_URI_TAGS: ['a', 'area']});
178
+
179
// prohibit HTML5 data attributes (default is true)
180
var clean = DOMPurify.sanitize(dirty, {ALLOW_DATA_ATTR: false});
181
0 commit comments