luci-theme-bootstrap: do not double escape menu titles
authorJo-Philipp Wich <jo@mein.io>
Thu, 27 Sep 2018 19:15:33 +0000 (21:15 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 27 Sep 2018 19:17:07 +0000 (21:17 +0200)
Fixes #1410.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm

index a6bb326976d1cd3479f53710e717614d3abb762e..740538481435d04887ab1f76148f65654ea0d1fc 100644 (file)
@@ -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
 
                                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