diff options
author | XhmikosR <xhmikosr@gmail.com> | 2020-01-07 23:46:28 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2020-02-17 22:33:54 +0300 |
commit | 411922b14dd9e3a1686e9fca00ddb1abc8b2e43b (patch) | |
tree | 70bf9abbeb7274bdf1a72f42f5cb402c592d21cd /js/src/tools | |
parent | 21041eecb7cb15cd9f5d4768d6c69d74c286f8e2 (diff) |
sanitizer.js: Add srcset in the allowed attributes (#29968)
Diffstat (limited to 'js/src/tools')
-rw-r--r-- | js/src/tools/sanitizer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/tools/sanitizer.js b/js/src/tools/sanitizer.js index 797159bcc0..0e83bde477 100644 --- a/js/src/tools/sanitizer.js +++ b/js/src/tools/sanitizer.js @@ -37,7 +37,7 @@ export const DefaultWhitelist = { h5: [], h6: [], i: [], - img: ['src', 'alt', 'title', 'width', 'height'], + img: ['src', 'srcset', 'alt', 'title', 'width', 'height'], li: [], ol: [], p: [], |