summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-adblock/htdocs/luci-static/resources/view
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2020-12-28 19:19:08 +0100
committerDirk Brenken <dev@brenken.org>2020-12-28 19:19:08 +0100
commite6a5ba770c094fa540251625b4ab5db4751d23de (patch)
treeb7e92ab7530fd475276781869a92a367146e397f /applications/luci-app-adblock/htdocs/luci-static/resources/view
parent6ffd1592ce574afe5493d8d7d11f65bec1916e86 (diff)
luci-app-adblock: XHTML fix
* made DNS Report page XHTML compatible Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-adblock/htdocs/luci-static/resources/view')
-rw-r--r--applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/dnsreport.js12
1 files 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 b85abd0238..fdd358038c 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
@@ -228,13 +228,17 @@ return view.extend({
b_cnt = content.data.top_domains[i].count;
}
if (content.data.top_domains[i]) {
- b_addr = '<a href="https://duckduckgo.com/?q=' + encodeURIComponent(content.data.top_domains[i].address) + '&k1=-1&km=l&kh=1" target="_blank" title="Search this domain">' + content.data.top_domains[i].address + '</a>';
+ //[!CDATA[
+ b_addr = '<a href="https://duckduckgo.com/?q=' + encodeURIComponent(content.data.top_domains[i].address) + '&amp;k1=-1&amp;km=l&amp;kh=1" target="_blank" title="Search this domain">' + content.data.top_domains[i].address + '</a>';
+ //]]>
}
if (content.data.top_blocked[i]) {
c_cnt = content.data.top_blocked[i].count;
}
if (content.data.top_blocked[i]) {
- c_addr = '<a href="https://duckduckgo.com/?q=' + encodeURIComponent(content.data.top_blocked[i].address) + '&k1=-1&km=l&kh=1" target="_blank" title="Search this domain">' + content.data.top_blocked[i].address + '</a>';
+ //[!CDATA[
+ c_addr = '<a href="https://duckduckgo.com/?q=' + encodeURIComponent(content.data.top_blocked[i].address) + '&amp;k1=-1&amp;km=l&amp;kh=1" target="_blank" title="Search this domain">' + content.data.top_blocked[i].address + '</a>';
+ //]]>
}
rows_top.push([
a_cnt,
@@ -285,7 +289,9 @@ return view.extend({
content.data.requests[i].date,
content.data.requests[i].time,
content.data.requests[i].client,
- '<a href="https://duckduckgo.com/?q=' + encodeURIComponent(content.data.requests[i].domain) + '&k1=-1&km=l&kh=1" target="_blank" title="Search this domain">' + content.data.requests[i].domain + '</a>',
+ //[!CDATA[
+ '<a href="https://duckduckgo.com/?q=' + encodeURIComponent(content.data.requests[i].domain) + '&amp;k1=-1&amp;km=l&amp;kh=1" target="_blank" title="Search this domain">' + content.data.requests[i].domain + '</a>',
+ //]]>
content.data.requests[i].rc,
button
]);