diff --git a/script.js b/script.js index 166c4a9130b01916baf2ff14d63002b4677e1e6c..81bef83f1d92e1b1352e813b2b252398f111ae58 100644 --- a/script.js +++ b/script.js @@ -229,7 +229,7 @@ async function copyOutput() { var element = document.getElementById('output'); const html = serializeElement(element); const htmlBlob = new Blob([html], { type: 'text/html' }); - const text = element.textContent ?? ''; + const text = element.innerText ?? ''; const textBlob = new Blob([text], { type: 'text/plain' }); const clipboardItem = new ClipboardItem({ [htmlBlob.type]: htmlBlob,