From eb2cc808f8e24ce1e260e0d041d34720e4a52e22 Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Mon, 28 Dec 2020 19:28:18 +0100 Subject: [PATCH] luci-app-adblock: XHTML fix * made DNS Report page XHTML compatible Signed-off-by: Dirk Brenken --- .../luci-static/resources/view/adblock/dnsreport.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/dnsreport.js b/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/dnsreport.js index 1b55bf9069..e7414f865b 100644 --- a/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/dnsreport.js +++ b/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/dnsreport.js @@ -227,13 +227,17 @@ return L.view.extend({ b_cnt = content.data.top_domains[i].count; } if (content.data.top_domains[i]) { - b_addr = '' + content.data.top_domains[i].address + ''; + //[!CDATA[ + b_addr = '' + content.data.top_domains[i].address + ''; + //]]> } if (content.data.top_blocked[i]) { c_cnt = content.data.top_blocked[i].count; } if (content.data.top_blocked[i]) { - c_addr = '' + content.data.top_blocked[i].address + ''; + //[!CDATA[ + c_addr = '' + content.data.top_blocked[i].address + ''; + //]]> } rows_top.push([ a_cnt, @@ -284,7 +288,9 @@ return L.view.extend({ content.data.requests[i].date, content.data.requests[i].time, content.data.requests[i].client, - '' + content.data.requests[i].domain + '', + //[!CDATA[ + '' + content.data.requests[i].domain + '', + //]]> content.data.requests[i].rc, button ]); -- 2.30.2