diff --git a/libs/cbi/luasrc/view/cbi/dvalue.htm b/libs/cbi/luasrc/view/cbi/dvalue.htm index 7d22fe0d9d..bdcbd317ec 100644 --- a/libs/cbi/luasrc/view/cbi/dvalue.htm +++ b/libs/cbi/luasrc/view/cbi/dvalue.htm @@ -16,12 +16,12 @@ $Id$ <%+cbi/valueheader%> <% if self.value then if type(self.value) == "function" then %> - <%=self:value(section)%> + <%=luci.util.pcdata(self:value(section))%> <% else %> - <%=self.value%> + <%=luci.util.pcdata(self.value)%> <% end else %> - <%=self:cfgvalue(section)%> + <%=luci.util.pcdata(self:cfgvalue(section))%> <% end %>   <%+cbi/valuefooter%> diff --git a/libs/cbi/luasrc/view/cbi/lvalue.htm b/libs/cbi/luasrc/view/cbi/lvalue.htm index cb41f53d13..5108e85c48 100644 --- a/libs/cbi/luasrc/view/cbi/lvalue.htm +++ b/libs/cbi/luasrc/view/cbi/lvalue.htm @@ -16,7 +16,7 @@ $Id$ <% if self.widget == "select" then %> <% elseif self.widget == "radio" then