luci-app-firewall: zones.js: fix HTML display in ct helper selection
authorJo-Philipp Wich <jo@mein.io>
Mon, 1 Mar 2021 08:09:35 +0000 (09:09 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 1 Mar 2021 08:09:35 +0000 (09:09 +0100)
Fixes: #4845
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js

index 835d9eb759979fdecd07e73c7f3524b356da0b9a..b319a4b849e1f111aded4115fa2ac302890bdbcc 100644 (file)
@@ -259,7 +259,7 @@ return view.extend({
                o.depends('auto_helper', '0');
                o.modalonly = true;
                for (var i = 0; i < ctHelpers.length; i++)
-                       o.value(ctHelpers[i].name, '<span class="hide-close">%s (%s)</span><span class="hide-open">%s</span>'.format(ctHelpers[i].description, ctHelpers[i].name.toUpperCase(), ctHelpers[i].name.toUpperCase()));
+                       o.value(ctHelpers[i].name, E('<span><span class="hide-close">%s (%s)</span><span class="hide-open">%s</span></span>'.format(ctHelpers[i].description, ctHelpers[i].name.toUpperCase(), ctHelpers[i].name.toUpperCase())));
 
                o = s.taboption('advanced', form.Flag, 'log', _('Enable logging on this zone'));
                o.modalonly = true;