diff --git a/util/gh-pages/script.js b/util/gh-pages/script.js index 4bff225983d..bf4ce79b2cb 100644 --- a/util/gh-pages/script.js +++ b/util/gh-pages/script.js @@ -262,16 +262,16 @@ const clipboard = document.getElementById("clipboard-" + lint.id); if (clipboard) { let resetClipboardTimeout = null; - let resetClipboardIcon = clipboard.textContent; + let resetClipboardIcon = clipboard.innerHTML; function resetClipboard() { resetClipboardTimeout = null; - clipboard.textContent = resetClipboardIcon; + clipboard.innerHTML = resetClipboardIcon; } navigator.clipboard.writeText("clippy::" + lint.id); - clipboard.textContent = "✓"; + clipboard.innerHTML = "✓"; if (resetClipboardTimeout !== null) { clearTimeout(resetClipboardTimeout); }