libs/web: implement rawhtml property for DummyValue switches, allowes passing arbritary markup

This commit is contained in:
Jo-Philipp Wich 2010-11-08 18:13:40 +00:00
parent c6a63e1794
commit 16262c2be0

View file

@ -15,7 +15,14 @@ $Id$
<%+cbi/valueheader%>
<% if self.href then %><a href="<%=self.href%>"><% 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 %></a><%end%>
&#160;
<input type="hidden" id="<%=cbid%>" value="<%=pcdata(self:cfgvalue(section) or self.default or "")%>" />