diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-05-09 13:40:34 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-05-09 13:40:34 +0530 |
commit | f1cc45e56a4fc6e80bb4be4434dbf49d41adfd83 (patch) | |
tree | 6b963cb1c408a98ace9bc2ab785920131ee9ba32 /actionpack/lib/action_view | |
parent | ef9dd2722342ef86f01cbca1dfd5174993d2d56f (diff) | |
download | rails-f1cc45e56a4fc6e80bb4be4434dbf49d41adfd83.tar.gz rails-f1cc45e56a4fc6e80bb4be4434dbf49d41adfd83.tar.bz2 rails-f1cc45e56a4fc6e80bb4be4434dbf49d41adfd83.zip |
fix a couple of formatting issues [ci skip]
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/text_helper.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb index fffc37ce9e..698f4434ba 100644 --- a/actionpack/lib/action_view/helpers/text_helper.rb +++ b/actionpack/lib/action_view/helpers/text_helper.rb @@ -90,7 +90,7 @@ module ActionView # Highlights one or more +phrases+ everywhere in +text+ by inserting it into # a <tt>:highlighter</tt> string. The highlighter can be specialized by passing <tt>:highlighter</tt> - # as a single-quoted string with \1 where the phrase is to be inserted (defaults to + # as a single-quoted string with <tt>\1</tt> where the phrase is to be inserted (defaults to # '<mark>\1</mark>') # # ==== Examples @@ -108,7 +108,9 @@ module ActionView # # You can still use <tt>highlight</tt> with the old API that accepts the # +highlighter+ as its optional third parameter: - # highlight('You searched for: rails', 'rails', '<a href="search?q=\1">\1</a>') # => You searched for: <a href="search?q=rails">rails</a> + # + # highlight('You searched for: rails', 'rails', '<a href="search?q=\1">\1</a>') + # # => You searched for: <a href="search?q=rails">rails</a> def highlight(text, phrases, *args) options = args.extract_options! unless args.empty? |