From 72d4b62d2504d1e7e0298e575eb88eb88486ae53 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 27 Sep 2018 21:16:41 +0200 Subject: luci-theme-material: do not double escape menu titles Fixes #1410. Signed-off-by: Jo-Philipp Wich --- themes/luci-theme-material/luasrc/view/themes/material/header.htm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'themes') 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 1f1df9c9a..6d1e6efb4 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('
  • %s
  • ' %{ 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('
  • %s' %{ title, @@ -142,7 +142,7 @@ render_submenu(category .. "/" .. r, nnode) write('
  • ') else - local title = pcdata(striptags(translate(nnode.title))) + local title = striptags(translate(nnode.title)) write('
  • %s
  • ' %{ title, -- cgit v1.2.3