summaryrefslogtreecommitdiffhomepage
path: root/themes
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-09-27 21:16:41 +0200
committerJo-Philipp Wich <jo@mein.io>2018-09-27 21:17:08 +0200
commit72d4b62d2504d1e7e0298e575eb88eb88486ae53 (patch)
tree453c1307042d94e50879ce4172b79e62a5635c24 /themes
parentce46437b30625ab8cf5eed2cb157b21f2acd38a1 (diff)
luci-theme-material: do not double escape menu titles
Fixes #1410. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'themes')
-rw-r--r--themes/luci-theme-material/luasrc/view/themes/material/header.htm6
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/luci-theme-material/luasrc/view/themes/material/header.htm b/themes/luci-theme-material/luasrc/view/themes/material/header.htm
index 1f1df9c9ad..6d1e6efb45 100644
--- a/themes/luci-theme-material/luasrc/view/themes/material/header.htm
+++ b/themes/luci-theme-material/luasrc/view/themes/material/header.htm
@@ -109,7 +109,7 @@
for i, r in ipairs(childs) do
local nnode = node.nodes[r]
- local title = pcdata(striptags(translate(nnode.title)))
+ local title = striptags(translate(nnode.title))
write('<li><a data-title="%s" href="%s">%s</a></li>' %{
title,
@@ -132,7 +132,7 @@
local grandchildren = disp.node_childs(nnode)
if #grandchildren > 0 then
- local title = pcdata(striptags(translate(nnode.title)))
+ local title = striptags(translate(nnode.title))
write('<li class="slide"><a class="menu" data-title="%s" href="#">%s</a>' %{
title,
@@ -142,7 +142,7 @@
render_submenu(category .. "/" .. r, nnode)
write('</li>')
else
- local title = pcdata(striptags(translate(nnode.title)))
+ local title = striptags(translate(nnode.title))
write('<li><a data-title="%s" href="%s">%s</a></li>' %{
title,