luci-theme-material: do not double escape menu titles
Fixes #1410. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
ce46437b30
commit
72d4b62d25
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue