diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-08-20 16:58:29 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-08-20 16:58:29 +0000 |
commit | 18dfd21c39e6ddcd6936174af654a05b742c51b7 (patch) | |
tree | 246e34486436075d67cf0a3756eb354f1131caa3 /libs/cbi/luasrc/cbi.lua | |
parent | ab71972c7e418be3a2a4d523c2f4ae5e9c5bfdd4 (diff) |
* luci/libs: use striptags() in cbi <option> elements
Diffstat (limited to 'libs/cbi/luasrc/cbi.lua')
-rw-r--r-- | libs/cbi/luasrc/cbi.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index 48a91d3b5a..295998e924 100644 --- a/libs/cbi/luasrc/cbi.lua +++ b/libs/cbi/luasrc/cbi.lua @@ -783,8 +783,9 @@ end function AbstractValue.render(self, s, scope) if not self.optional or self:cfgvalue(s) or self:formcreated(s) then scope = scope or {} - scope.section = s - scope.cbid = self:cbid(s) + scope.section = s + scope.cbid = self:cbid(s) + scope.striptags = luci.util.striptags scope.ifattr = function(cond,key,val) if cond then |