diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2010-01-05 08:22:17 -0800 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2010-01-05 08:22:17 -0800 |
commit | 2dc5aeed6d73fb7c68bdfb675e025747a341697a (patch) | |
tree | c0364dbd4be5306384bdeff840b790e0e9d26c08 /actionpack | |
parent | 38f669766cb4d328e121afab020f4a52ca45421f (diff) | |
download | rails-2dc5aeed6d73fb7c68bdfb675e025747a341697a.tar.gz rails-2dc5aeed6d73fb7c68bdfb675e025747a341697a.tar.bz2 rails-2dc5aeed6d73fb7c68bdfb675e025747a341697a.zip |
NumberHelper#number_to_currency should output html_safe strings so the units are not escaped
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/helpers/number_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/number_helper.rb b/actionpack/lib/action_view/helpers/number_helper.rb index 397871b85e..64b71663c3 100644 --- a/actionpack/lib/action_view/helpers/number_helper.rb +++ b/actionpack/lib/action_view/helpers/number_helper.rb @@ -92,7 +92,7 @@ module ActionView :precision => precision, :delimiter => delimiter, :separator => separator) - ).gsub(/%u/, unit) + ).gsub(/%u/, unit).html_safe! rescue number end |