From a3108ad6e96c95c9a4c89ef859a6aefdce4d7040 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Wed, 20 Oct 2021 11:34:14 +0800 Subject: [PATCH] fix show special chars in url textarea --- theme/classic.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/theme/classic.html b/theme/classic.html index dc64c56..c3919a1 100644 --- a/theme/classic.html +++ b/theme/classic.html @@ -529,7 +529,10 @@ var $url = document.getElementById('url'); if ($url) { - $url.innerHTML = location.protocol + '//' + location.host + $url.innerHTML; + //$url.innerHTML = location.protocol + '//' + location.host + $url.innerHTML; + let url = location.href; + url = url.substr(0, url.length-8); + $url.innerHTML = url.replace(/&/g, '&amp;'); $url.style.height = $url.scrollHeight + 'px'; }