libs/web: fix html output for complex datatypes containing apostrophes
[project/luci.git] / libs / web / luasrc / view / cbi / dvalue.htm
1 <%+cbi/valueheader%>
2 <% if self.href then %><a href="<%=self.href%>"><% end -%>
3         <%
4                 local val = self:cfgvalue(section) or self.default or ""
5                 if not self.rawhtml then
6                         write(pcdata(val))
7                 else
8                         write(val)
9                 end
10         %>
11 <%- if self.href then %></a><%end%>
12 <input type="hidden" id="<%=cbid%>" value="<%=pcdata(self:cfgvalue(section) or self.default or "")%>" />
13 <%+cbi/valuefooter%>