X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=libs%2Fweb%2Fluasrc%2Fview%2Fcbi%2Fdvalue.htm;h=7377348fe4ccbad9ad39887bcf4a723ce3c7276e;hp=9745fff4cbbae4d801251502a60ac0a31017e0fb;hb=16262c2be04e035f3403fddac6144272092e8dc0;hpb=c6a63e1794d347daba1ff469814c5ebeab47b769
diff --git a/libs/web/luasrc/view/cbi/dvalue.htm b/libs/web/luasrc/view/cbi/dvalue.htm
index 9745fff4c..7377348fe 100644
--- a/libs/web/luasrc/view/cbi/dvalue.htm
+++ b/libs/web/luasrc/view/cbi/dvalue.htm
@@ -15,7 +15,14 @@ $Id$
<%+cbi/valueheader%>
<% if self.href then %><% end -%>
- <%=pcdata(self:cfgvalue(section) or self.default or "")%>
+ <%
+ local val = self:cfgvalue(section) or self.default or ""
+ if not self.rawhtml then
+ write(pcdata(val))
+ else
+ write(val)
+ end
+ %>
<%- if self.href then %><%end%>
" />