diff --git a/plugins/dev-tools/src/screenshot.js b/plugins/dev-tools/src/screenshot.js index f968067713..fb29fc2b24 100644 --- a/plugins/dev-tools/src/screenshot.js +++ b/plugins/dev-tools/src/screenshot.js @@ -99,7 +99,7 @@ function workspaceToSvg_(workspace, callback, customCss) { }) .join('\n'); const style = document.createElement('style'); - style.innerHTML = css + '\n' + customCss; + style.textContent = css + '\n' + customCss; svg.insertBefore(style, svg.firstChild); let svgAsXML = new XMLSerializer().serializeToString(svg);