diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-03-14 13:11:07 -0300 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-03-14 12:07:15 -0500 |
commit | beeb02076a0b7a8bce59555cd486b96c59e231f0 (patch) | |
tree | c78eb751fbbfc74aea8e7d5800eac36aeb4b4d27 /actionpack/lib/action_view/helpers/url_helper.rb | |
parent | 3da9a08a7367eb389ddc03159bfbe5e9a8416e20 (diff) | |
download | rails-beeb02076a0b7a8bce59555cd486b96c59e231f0.tar.gz rails-beeb02076a0b7a8bce59555cd486b96c59e231f0.tar.bz2 rails-beeb02076a0b7a8bce59555cd486b96c59e231f0.zip |
Making escaped things more readable
Diffstat (limited to 'actionpack/lib/action_view/helpers/url_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/url_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb index 148f2868e9..14d59034f1 100644 --- a/actionpack/lib/action_view/helpers/url_helper.rb +++ b/actionpack/lib/action_view/helpers/url_helper.rb @@ -224,7 +224,7 @@ module ActionView end href_attr = "href=\"#{url}\"" unless href - ("<a #{href_attr}#{tag_options}>".html_safe << (name || url)).safe_concat("</a>") + "<a #{href_attr}#{tag_options}>#{ERB::Util.h(name || url)}</a>".html_safe end end |