From e4440379dfa2245a67f9edbba453e16b30265a89 Mon Sep 17 00:00:00 2001 From: xxm Date: Fri, 21 Aug 2026 21:54:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(broadcast):=20=E6=B7=BB=E5=8A=A0esc?= =?UTF-8?q?=E5=87=BD=E6=95=B0(=E4=BF=AE=E5=A4=8D=E6=92=AD=E6=8A=A5?= =?UTF-8?q?=E9=A1=B5esc=20is=20not=20defined)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/index.html b/static/index.html index c06f3c02..db7ce3fa 100644 --- a/static/index.html +++ b/static/index.html @@ -3135,6 +3135,10 @@ function renderAlerts(alerts) { // refreshAll 内联渲染:把 alerts 交给 renderAlerts +function esc(s) { + return String(s || '').replace(/&/g,'&').replace(//g,'>').replace(/"/g,'"'); +} + function loadBroadcast() { var el = document.getElementById('broadcast-list'); if (!el) return;