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;