diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-01-20 02:10:42 -0500 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-01-20 02:10:42 -0500 |
commit | 6226f8f0662f66c8189f7e628dc42ca59d8f980a (patch) | |
tree | cfb209468ae10921ecdf3fbdd9a5e437903e9a17 /actionview/lib/action_view/helpers/form_helper.rb | |
parent | 715cbd3fdcade7c4fdae944c4a448252317faff9 (diff) | |
parent | b387d9a14aeecc372f49544d927b2f24d5a39d49 (diff) | |
download | rails-6226f8f0662f66c8189f7e628dc42ca59d8f980a.tar.gz rails-6226f8f0662f66c8189f7e628dc42ca59d8f980a.tar.bz2 rails-6226f8f0662f66c8189f7e628dc42ca59d8f980a.zip |
Merge pull request #23130 from vipulnsward/html_safe_to_raw
Changed html_safe to raw in AV
Diffstat (limited to 'actionview/lib/action_view/helpers/form_helper.rb')
-rw-r--r-- | actionview/lib/action_view/helpers/form_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/helpers/form_helper.rb b/actionview/lib/action_view/helpers/form_helper.rb index b43d99ebb7..c1015ffe89 100644 --- a/actionview/lib/action_view/helpers/form_helper.rb +++ b/actionview/lib/action_view/helpers/form_helper.rb @@ -765,7 +765,7 @@ module ActionView # # => <label for="post_privacy_public">Public Post</label> # # label(:post, :terms) do - # 'Accept <a href="/terms">Terms</a>.'.html_safe + # raw('Accept <a href="/terms">Terms</a>.') # end # # => <label for="post_terms">Accept <a href="/terms">Terms</a>.</label> def label(object_name, method, content_or_options = nil, options = nil, &block) @@ -1675,7 +1675,7 @@ module ActionView # # => <label for="post_privacy_public">Public Post</label> # # label(:terms) do - # 'Accept <a href="/terms">Terms</a>.'.html_safe + # raw('Accept <a href="/terms">Terms</a>.') # end # # => <label for="post_terms">Accept <a href="/terms">Terms</a>.</label> def label(method, text = nil, options = {}, &block) |