Skip to content

Commit ac5c29c

Browse files
committed
See #430
docs: Updated Readme to list new ADD_DATA_URI_TAGS flag
1 parent 7d21250 commit ac5c29c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ var clean = DOMPurify.sanitize(dirty, {ADD_TAGS: ['my-tag']});
173173
// extend the existing array of attributes
174174
var clean = DOMPurify.sanitize(dirty, {ADD_ATTR: ['my-attr']});
175175

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+
176179
// prohibit HTML5 data attributes (default is true)
177180
var clean = DOMPurify.sanitize(dirty, {ALLOW_DATA_ATTR: false});
178181

0 commit comments

Comments
 (0)