Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #12853 from joshjordan/master

Allocate one less object using html_safe during content_tag construction
  • Loading branch information...
commit f6f4bed34d7f654e0dde8b2cd369066d0857e91c 2 parents 72551c2 + ea6640d
@rafaelfranca rafaelfranca authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionview/lib/action_view/helpers/tag_helper.rb
View
2  actionview/lib/action_view/helpers/tag_helper.rb
@@ -151,7 +151,7 @@ def tag_options(options, escape = true)
attrs << tag_option(key, value, escape)
end
end
- " #{attrs.sort! * ' '}".html_safe unless attrs.empty?
+ " #{attrs.sort! * ' '}" unless attrs.empty?
end
def data_tag_option(key, value, escape)
Please sign in to comment.
Something went wrong with that request. Please try again.