diff --git a/core/modules/filter/filter.filter_html.admin.js b/core/modules/filter/filter.filter_html.admin.js index 8c9cef6..b5244cd 100644 --- a/core/modules/filter/filter.filter_html.admin.js +++ b/core/modules/filter/filter.filter_html.admin.js @@ -236,7 +236,7 @@ var attributes; var attribute; var allowedTags = setting.match(/(<[^>]+>)/g); - var sandbox = document.createElement('div'); + var sandbox = document.implementation.createHTMLDocument().createElement('div'); var rules = {}; for (var t = 0; t < allowedTags.length; t++) { // Let the browser do the parsing work for us.