From c95a3862dc7592a1fd2a7ad9df6a85f646d583dc Mon Sep 17 00:00:00 2001 From: fofolee Date: Thu, 21 Apr 2022 16:53:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=20htmlEncode=20=E7=AE=97?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/preload.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/preload.js b/plugin/preload.js index 059a530..fada7b0 100644 --- a/plugin/preload.js +++ b/plugin/preload.js @@ -257,7 +257,9 @@ let getSleepCodeByShell = ms => { } window.htmlEncode = (value) => { - return String(value).replace(/&/g, "&").replace(/>/g, ">").replace(/ {