diff --git a/services/web-ui/public/js/topbar-strip.js b/services/web-ui/public/js/topbar-strip.js index 50dc9cf..d79f58e 100644 --- a/services/web-ui/public/js/topbar-strip.js +++ b/services/web-ui/public/js/topbar-strip.js @@ -1,5 +1,9 @@ // Operator status strip mounted at the top of every .main pane. (function () { + function esc(s) { + if (!s) return ''; + return String(s).replace(/&/g,'&').replace(//g,'>').replace(/"/g,'"'); + } function mount() { const main = document.querySelector('.main'); if (!main || main.querySelector('.topbar-strip')) return; @@ -11,7 +15,7 @@ '00:00:00' + '' + 'Page' + - '' + pageName() + '' + + '' + esc(pageName()) + '' + '' + 'API' + '--';