Feature #255 » cgi_elements.patch
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
|