aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/template_handlers
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-12-16 23:53:45 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-12-16 23:53:45 +0000
commitd6859a7216fbe40f523fd80f85a06fa3e23070bb (patch)
tree1c9e5822cba8c95c374d945e3ccbc78f24859f14 /actionpack/lib/action_view/template_handlers
parent56e646296af1929f07f0e2981deddba95cdbf5d0 (diff)
downloadrails-d6859a7216fbe40f523fd80f85a06fa3e23070bb.tar.gz
rails-d6859a7216fbe40f523fd80f85a06fa3e23070bb.tar.bz2
rails-d6859a7216fbe40f523fd80f85a06fa3e23070bb.zip
Add tests for html_escape, and remove an unneeded backslash (closes #10511) [fxn]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8422 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/template_handlers')
-rw-r--r--actionpack/lib/action_view/template_handlers/erb.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/template_handlers/erb.rb b/actionpack/lib/action_view/template_handlers/erb.rb
index f1b800cb53..022fc362e7 100644
--- a/actionpack/lib/action_view/template_handlers/erb.rb
+++ b/actionpack/lib/action_view/template_handlers/erb.rb
@@ -5,7 +5,7 @@ class ERB
HTML_ESCAPE = { '&' => '&amp;', '"' => '&quot;', '>' => '&gt;', '<' => '&lt;' }
def html_escape(s)
- s.to_s.gsub(/[&\"><]/) { |special| HTML_ESCAPE[special] }
+ s.to_s.gsub(/[&"><]/) { |special| HTML_ESCAPE[special] }
end
end
end