diff --git a/www/index.html b/www/index.html index 69403e98..4e4f9992 100644 --- a/www/index.html +++ b/www/index.html @@ -124,7 +124,8 @@ fetch(url, {cache: 'no-cache'}).then(r => r.json()).then(data => { tbody.innerHTML = ''; - for (const [name, value] of Object.entries(data)) { + for (const [key, value] of Object.entries(data)) { + const name = key.replace(/[<">]/g, ''); // sanitize const online = value && value.consumers ? value.consumers.length : 0; const src = encodeURIComponent(name); const links = templates.map(link => { diff --git a/www/links.html b/www/links.html index 25f7780a..bc9c08c3 100644 --- a/www/links.html +++ b/www/links.html @@ -43,7 +43,7 @@