From 025cab9ec39d3b69e53c8c3647e1f9402613c1dd Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 7 Jul 2022 22:15:26 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E4=B8=8D=E8=BD=AC=E4=B9=89=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/util/websocket.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/kernel/util/websocket.go b/kernel/util/websocket.go index 90cbbd0b4..ad2bcf8a1 100644 --- a/kernel/util/websocket.go +++ b/kernel/util/websocket.go @@ -21,7 +21,6 @@ import ( "time" "github.com/88250/gulu" - "github.com/88250/lute/html" "github.com/88250/melody" ) @@ -126,33 +125,28 @@ func ReloadUI() { } func PushTxErr(msg string, code int, data interface{}) { - msg = html.EscapeHTMLStr(msg) BroadcastByType("main", "txerr", code, msg, data) } func PushUpdateMsg(msgId string, msg string, timeout int) { - msg = html.EscapeHTMLStr(msg) BroadcastByType("main", "msg", 0, msg, map[string]interface{}{"id": msgId, "closeTimeout": timeout}) return } func PushMsg(msg string, timeout int) (msgId string) { msgId = gulu.Rand.String(7) - msg = html.EscapeHTMLStr(msg) BroadcastByType("main", "msg", 0, msg, map[string]interface{}{"id": msgId, "closeTimeout": timeout}) return } func PushErrMsg(msg string, timeout int) (msgId string) { msgId = gulu.Rand.String(7) - msg = html.EscapeHTMLStr(msg) BroadcastByType("main", "msg", -1, msg, map[string]interface{}{"id": msgId, "closeTimeout": timeout}) return } func PushStatusBar(msg string) { msg += " (" + time.Now().Format("2006-01-02 15:04:05") + ")" - msg = html.EscapeHTMLStr(msg) BroadcastByType("main", "statusbar", 0, msg, nil) }