diff --git a/edit/edit.js b/edit/edit.js index f037bf89..104aba5e 100644 --- a/edit/edit.js +++ b/edit/edit.js @@ -1963,7 +1963,7 @@ function showHelp(title, text) { ((e.keyCode || e.which) === 27 && !e.altKey && !e.ctrlKey && !e.shiftKey && !e.metaKey) ) { div.style.display = ''; - document.querySelector('.contents').innerHTML = ''; + document.querySelector('.contents').textContent = ''; document.removeEventListener('keydown', closeHelp); } } diff --git a/manage/manage.js b/manage/manage.js index 3d11308a..08e8feec 100644 --- a/manage/manage.js +++ b/manage/manage.js @@ -519,7 +519,7 @@ function switchUI({styleOnly} = {}) { const missingFavicons = newUI.enabled && newUI.favicons && !$('.applies-to img'); if (changed.enabled || (missingFavicons && !createStyleElement.parts)) { - installed.innerHTML = ''; + installed.textContent = ''; getStylesSafe().then(showStyles); return; }