diff options
author | Kieran Pilkington <kieran@katipo.co.nz> | 2010-04-04 16:31:52 +1200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-04-16 15:05:41 -0700 |
commit | 001ca893c6f061796a2c3f03c864fdf06c9efbb1 (patch) | |
tree | 99eb36fe4d3716712cf61e18db28c7675886183e /actionpack/lib/action_view | |
parent | 66b55dbfea370f0c4553e7d65b468dfaa81e8b37 (diff) | |
download | rails-001ca893c6f061796a2c3f03c864fdf06c9efbb1.tar.gz rails-001ca893c6f061796a2c3f03c864fdf06c9efbb1.tar.bz2 rails-001ca893c6f061796a2c3f03c864fdf06c9efbb1.zip |
Mark the result of grouped_options_for_select as HTML safe [#4322 state:committed]
Signed-off-by: Xavier Noria <fxn@hashref.com>
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_options_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/form_options_helper.rb b/actionpack/lib/action_view/helpers/form_options_helper.rb index 105f4565e6..8f8db548c3 100644 --- a/actionpack/lib/action_view/helpers/form_options_helper.rb +++ b/actionpack/lib/action_view/helpers/form_options_helper.rb @@ -444,7 +444,7 @@ module ActionView body << content_tag(:optgroup, options_for_select(group[1], selected_key), :label => group[0]) end - body + body.html_safe end # Returns a string of option tags for pretty much any time zone in the |