diff options
author | Rick Olson <technoweenie@gmail.com> | 2006-12-14 20:56:03 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2006-12-14 20:56:03 +0000 |
commit | d833645cd8609e50f56acaaa7e6dd85e3198a446 (patch) | |
tree | 3107b830bac34df9a08b64f1f015c13368853ab8 /actionpack/lib/action_controller/vendor/html-scanner/html | |
parent | 011f4e7413f1bde83aa62a5fc46afd6957ff9b3e (diff) | |
download | rails-d833645cd8609e50f56acaaa7e6dd85e3198a446.tar.gz rails-d833645cd8609e50f56acaaa7e6dd85e3198a446.tar.bz2 rails-d833645cd8609e50f56acaaa7e6dd85e3198a446.zip |
Fix HTML::Node to output double quotes instead of single quotes. Closes #6845 [mitreandy]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5718 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/vendor/html-scanner/html')
-rw-r--r-- | actionpack/lib/action_controller/vendor/html-scanner/html/node.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb b/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb index a6490b1f3b..9b7621820e 100644 --- a/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb +++ b/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb @@ -316,7 +316,7 @@ module HTML #:nodoc: s = "<#{@name}" @attributes.each do |k,v| s << " #{k}" - s << "='#{v.gsub(/'/,"\\\\'")}'" if String === v + s << "=\"#{v}\"" if String === v end s << " /" if @closing == :self s << ">" |