From 001ca893c6f061796a2c3f03c864fdf06c9efbb1 Mon Sep 17 00:00:00 2001 From: Kieran Pilkington Date: Sun, 4 Apr 2010 16:31:52 +1200 Subject: Mark the result of grouped_options_for_select as HTML safe [#4322 state:committed] Signed-off-by: Xavier Noria --- actionpack/lib/action_view/helpers/form_options_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib') 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 -- cgit v1.2.3