fix(broadcast): 添加esc函数(修复播报页esc is not defined)
This commit is contained in:
@@ -3135,6 +3135,10 @@ function renderAlerts(alerts) {
|
||||
// refreshAll 内联渲染:把 alerts 交给 renderAlerts
|
||||
|
||||
|
||||
function esc(s) {
|
||||
return String(s || '').replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"');
|
||||
}
|
||||
|
||||
function loadBroadcast() {
|
||||
var el = document.getElementById('broadcast-list');
|
||||
if (!el) return;
|
||||
|
||||
Reference in New Issue
Block a user