diff options
author | Vipul A M <vipulnsward@gmail.com> | 2016-01-20 12:25:06 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2016-01-20 12:38:59 +0530 |
commit | b387d9a14aeecc372f49544d927b2f24d5a39d49 (patch) | |
tree | a33ea10a967587a3d598c348a89acfb099255d1f /actionview/lib/action_view/helpers/form_helper.rb | |
parent | 56a9341689942146d350ff931497956a15152bdb (diff) | |
download | rails-b387d9a14aeecc372f49544d927b2f24d5a39d49.tar.gz rails-b387d9a14aeecc372f49544d927b2f24d5a39d49.tar.bz2 rails-b387d9a14aeecc372f49544d927b2f24d5a39d49.zip |
html_safe is not supposed to be public API for AV. This change removes usage of html_safe in favour of raw() in AV helpers.
Also changed usage of html_safe to make use of raw() instead so that the intended behaviour is verified with raw()
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) |