From 707f2f13070959df678f72dee96999c09134232b Mon Sep 17 00:00:00 2001 From: Shreyash Karandikar Date: Sun, 5 Jul 2026 14:35:18 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20copy=20button=20copying=20?= =?UTF-8?q?HTML=20tags=20from=20termynal=20command=20lines?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- docs/en/docs/js/custom.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/en/docs/js/custom.js b/docs/en/docs/js/custom.js index a4db853f5..bf441a708 100644 --- a/docs/en/docs/js/custom.js +++ b/docs/en/docs/js/custom.js @@ -85,7 +85,9 @@ function setupTermynal() { .filter(line => line.type === "input") .map(line => line.value) .join("\n"); - node.textContent = inputCommands; + const plainTextExtractor = document.createElement("div"); + plainTextExtractor.innerHTML = inputCommands; + node.textContent = plainTextExtractor.textContent; const div = document.createElement("div"); node.style.display = "none"; node.after(div);