libs/cbi: attach pcdata() to template scope and use it
[project/luci.git] / libs / cbi / luasrc / cbi.lua
index 83f5c27..044993a 100644 (file)
@@ -1340,6 +1340,7 @@ function AbstractValue.render(self, s, scope)
                scope.section   = s
                scope.cbid      = self:cbid(s)
                scope.striptags = luci.util.striptags
+               scope.pcdata    = luci.util.pcdata
 
                scope.ifattr = function(cond,key,val)
                        if cond then