Browse files

Merge pull request #4335 from lest/useless-multibyte-clean

remove use of Multibyte.clean as it's no-op in ruby 1.9
  • Loading branch information...
2 parents b2b2eb3 + ad0336e commit 55fbc19b5ff062bdd96c81532311e897ecb2a996 @josevalim josevalim committed Jan 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/tag_helper.rb
View
2 actionpack/lib/action_view/helpers/tag_helper.rb
@@ -118,7 +118,7 @@ def cdata_section(content)
# escape_once("<< Accept & Checkout")
# # => "<< Accept & Checkout"
def escape_once(html)
- ActiveSupport::Multibyte.clean(html.to_s).gsub(/[\"><]|&(?!([a-zA-Z]+|(#\d+));)/) { |special| ERB::Util::HTML_ESCAPE[special] }
+ html.to_s.gsub(/[\"><]|&(?!([a-zA-Z]+|(#\d+));)/) { |special| ERB::Util::HTML_ESCAPE[special] }
end
private

0 comments on commit 55fbc19

Please sign in to comment.