Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allocate one less object using html_safe during content_tag construction

  • Loading branch information...
commit ea6640d05d2cc5a2c596719aa245814b540acd62 1 parent aa7fdfb
@joshjordan joshjordan 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.