function form.textarea(model,attribute,html_options)
local t = pack(defaults(model,attribute,html_options))
+ t[4] = nil; t.n = 3
tinsert(t,1,'<textarea')
- tinsert(t,'>')
- tinsert(t,model[attribute] or 'asadas')
- tinsert(t,'</textarea>')
+ -- TODO html encode?
+ tinsert(t,'>' .. (model[attribute] or '') .. '</textarea>')
return tconcat(t,' ')
end
proposed fix: