From 09dd88783ed57f7c45a1f67d77d2781c0ee0db9d Mon Sep 17 00:00:00 2001 From: Thibault Piron Date: Mon, 13 Oct 2025 14:27:31 +0000 Subject: [PATCH] fix: use innerText instead of innerHTML --- src/server/templates/note.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/templates/note.html b/src/server/templates/note.html index 498aea2..03aca94 100644 --- a/src/server/templates/note.html +++ b/src/server/templates/note.html @@ -48,7 +48,7 @@ if (encryptionKey != "") { copierCommand += "#" + encryptionKey; } - document.getElementById("copierCommand").innerHTML = copierCommand; + document.getElementById("copierCommand").innerText = copierCommand; document.getElementById("copier").addEventListener("click", () => { document.getElementById("copierContainer").style.display = ""; }); @@ -77,7 +77,7 @@ curlCommand += " -XPOST -d '" + payload + "'"; } curlCommand += " " + window.location.origin + "/api/note/{{ .Note.ID }}"; - document.getElementById("curlCommand").innerHTML = curlCommand; + document.getElementById("curlCommand").innerText = curlCommand; document.getElementById("curl").addEventListener("click", () => { document.getElementById("curlContainer").style.display = ""; }); -- 2.49.1