From baa6c084be656717c733b32cf5be988520c39c77 Mon Sep 17 00:00:00 2001 From: MoonLeeeaf <150461955+MoonLeeeaf@users.noreply.github.com> Date: Tue, 25 Jun 2024 21:40:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(msg):=20=E4=BF=AE=E5=A4=8D=E7=94=B1?= =?UTF-8?q?=E4=BA=8E=E5=8F=B3=E9=94=AE=E8=8F=9C=E5=8D=95=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E7=9A=84=E6=96=87=E6=9C=AC=E5=AF=BC=E8=87=B4=E7=9A=84HTML?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=87=BA=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ling_chair_http/handler.js | 8 ++++++-- ling_chair_http/utils.js | 40 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/ling_chair_http/handler.js b/ling_chair_http/handler.js index 9cc3e49..a95680d 100644 --- a/ling_chair_http/handler.js +++ b/ling_chair_http/handler.js @@ -638,12 +638,16 @@ class ChatMsgAdapter { while ($(ele).attr("tag") != "msg-card") ele = ele.parentNode e = $(ele) + + let rawText = e.find("#raw-msg-content").text() + let text = e.find("#msg-content").text() + let menuHtml = $.parseHTML(`