libs/web: implement rawhtml property for DummyValue switches, allowes passing arbritary markup
This commit is contained in:
parent
c6a63e1794
commit
16262c2be0
1 changed files with 8 additions and 1 deletions
|
@ -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%>
|
||||
 
|
||||
<input type="hidden" id="<%=cbid%>" value="<%=pcdata(self:cfgvalue(section) or self.default or "")%>" />
|
||||
|
|
Loading…
Reference in a new issue