Skip to content

Commit

Permalink
sanitizer.js: Add srcset in the allowed attributes (twbs#29968)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored and olsza committed Oct 3, 2020
1 parent 6e18e55 commit 233e640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/util/sanitizer.js
Expand Up @@ -76,7 +76,7 @@ export const DefaultWhitelist = {
h5: [],
h6: [],
i: [],
img: ['src', 'alt', 'title', 'width', 'height'],
img: ['src', 'srcset', 'alt', 'title', 'width', 'height'],
li: [],
ol: [],
p: [],
Expand Down

0 comments on commit 233e640

Please sign in to comment.