From 403d0d8f9e69029dcfe5313d07dff7705141849e Mon Sep 17 00:00:00 2001 From: James Lovejoy Date: Fri, 19 Jan 2018 17:56:00 -0800 Subject: Fix typos. Improve text_helper documentation. [ci skip] --- actionview/lib/action_view/helpers/text_helper.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'actionview/lib/action_view/helpers') diff --git a/actionview/lib/action_view/helpers/text_helper.rb b/actionview/lib/action_view/helpers/text_helper.rb index 84d38aa416..34138de00e 100644 --- a/actionview/lib/action_view/helpers/text_helper.rb +++ b/actionview/lib/action_view/helpers/text_helper.rb @@ -13,9 +13,9 @@ module ActionView # # ==== Sanitization # - # Most text helpers by default sanitize the given content, but do not escape it. - # This means HTML tags will appear in the page but all malicious code will be removed. - # Let's look at some examples using the +simple_format+ method: + # Most text helpers that generate HTML output sanitize the given input by default, + # but do not escape it. This means HTML tags will appear in the page but all malicious + # code will be removed. Let's look at some examples using the +simple_format+ method: # # simple_format('Example') # # => "

Example

" @@ -128,7 +128,7 @@ module ActionView # # => You searched for: rails # # highlight('ruby on rails', 'rails', sanitize: false) - # # => "ruby on rails" + # # => ruby on rails def highlight(text, phrases, options = {}) text = sanitize(text) if options.fetch(:sanitize, true) -- cgit v1.2.3