Project

General

Profile

Feature #255 » cgi_elements.patch

Anonymous, 07/10/2008 10:10 PM

View differences:

lib/cgi.rb (Arbeitskopie)
s = <<-END
"<#{element.upcase}" + attributes.collect{|name, value|
next unless value
" " + CGI::escapeHTML(name) +
" " + CGI::escapeHTML(name.to_s) +
if true == value
""
else
'="' + CGI::escapeHTML(value) + '"'
'="' + CGI::escapeHTML(value.to_s) + '"'
end
}.to_s + ">"
END
(1-1/2)