From 411922b14dd9e3a1686e9fca00ddb1abc8b2e43b Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 7 Jan 2020 22:46:28 +0200 Subject: [PATCH] sanitizer.js: Add srcset in the allowed attributes (#29968) --- js/src/tools/sanitizer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: [],