aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Nartimov <just.lest@gmail.com>2012-01-06 00:24:38 +0300
committerSergey Nartimov <just.lest@gmail.com>2012-01-06 00:25:21 +0300
commitad0336e528c053e9fcea7b1c1721b1d0e643483f (patch)
tree438a39c74e3147ab62bd3d5de49d772703528843
parent39625d153781ffa07121c35dc4bba40410624c9c (diff)
downloadrails-ad0336e528c053e9fcea7b1c1721b1d0e643483f.tar.gz
rails-ad0336e528c053e9fcea7b1c1721b1d0e643483f.tar.bz2
rails-ad0336e528c053e9fcea7b1c1721b1d0e643483f.zip
remove use of Multibyte.clean as it's no-op in ruby 1.9
-rw-r--r--actionpack/lib/action_view/helpers/tag_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/tag_helper.rb b/actionpack/lib/action_view/helpers/tag_helper.rb
index 8c33ef09fa..93a3c40683 100644
--- a/actionpack/lib/action_view/helpers/tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/tag_helper.rb
@@ -118,7 +118,7 @@ module ActionView
# escape_once("&lt;&lt; Accept & Checkout")
# # => "&lt;&lt; Accept &amp; 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