From a1f1032000a4c1e1c63aad955d44c78ff33a6c25 Mon Sep 17 00:00:00 2001 From: hubian <908234780@qq.com> Date: Sun, 12 Apr 2026 20:35:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=8D=E5=88=B6=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E4=BF=AE=E5=A4=8D=20-=20=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E5=AD=98=E5=82=A8=E5=92=8C=E8=AF=BB=E5=8F=96=E5=8E=9F=E5=A7=8B?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/index.html | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/templates/index.html b/templates/index.html index 9696b79..2741134 100644 --- a/templates/index.html +++ b/templates/index.html @@ -249,6 +249,9 @@ div.className = `message ${role}`; const avatar = role === 'user' ? '👤' : '🤖'; + // 准备复制内容 - 转义双引号用于HTML属性 + const contentForCopy = content.replace(/&/g, '&').replace(/"/g, '"'); + let html = `