From: Dirk Brenken Date: Mon, 28 Dec 2020 18:28:18 +0000 (+0100) Subject: luci-app-adblock: XHTML fix X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=eb2cc808f8e24ce1e260e0d041d34720e4a52e22;p=project%2Fluci.git luci-app-adblock: XHTML fix * made DNS Report page XHTML compatible Signed-off-by: Dirk Brenken --- 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 ]);