diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-09-27 21:15:33 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-09-27 21:17:07 +0200 |
commit | ce46437b30625ab8cf5eed2cb157b21f2acd38a1 (patch) | |
tree | 85ece4ae429865061cbb4eb5b0cec88f18a4c4a9 | |
parent | f405d239900b3a292c811c2fdd6e5d2bf14a169f (diff) |
luci-theme-bootstrap: do not double escape menu titles
Fixes #1410.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r-- | themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm index a6bb32697..740538481 100644 --- a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm +++ b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm @@ -98,7 +98,7 @@ local nnode = node.nodes[r] write('<li><a href="%s">%s</a></li>' %{ nodeurl(prefix, r, nnode.query), - pcdata(striptags(translate(nnode.title))) + striptags(translate(nnode.title)) }) end @@ -116,13 +116,13 @@ local grandchildren = disp.node_childs(nnode) if #grandchildren > 0 then - write('<li class="dropdown"><a class="menu" href="#">%s</a>' % pcdata(striptags(translate(nnode.title)))) + write('<li class="dropdown"><a class="menu" href="#">%s</a>' % striptags(translate(nnode.title))) render_submenu(category .. "/" .. r, nnode) write('</li>') else write('<li><a href="%s">%s</a></li>' %{ nodeurl(category, r, nnode.query), - pcdata(striptags(translate(nnode.title))) + striptags(translate(nnode.title)) }) end end |