diff --git a/actionview/lib/action_view/helpers/text_helper.rb b/actionview/lib/action_view/helpers/text_helper.rb index e98cf998ce..0d6519e53c 100644 --- a/actionview/lib/action_view/helpers/text_helper.rb +++ b/actionview/lib/action_view/helpers/text_helper.rb @@ -109,7 +109,7 @@ module ActionView # Highlights one or more +phrases+ everywhere in +text+ by inserting it into # a :highlighter string. The highlighter can be specialized by passing :highlighter # as a single-quoted string with \1 where the phrase is to be inserted (defaults to - # '\1') or passing a block that receives each matched term. By default +text+ + # \1) or passing a block that receives each matched term. By default +text+ # is sanitized to prevent possible XSS attacks. If the input is trustworthy, passing false # for :sanitize will turn sanitizing off. #