It work in Chrome on
div.innerHTML = sanitized
iframe.srcdoc = sanitized iframe.src = `data:text/html;charset=UTF-8,${sanitized}`