Skip to content

Commit 6951f16

Browse files
committed
Fix invalid syntax in TextHelper#highlight API docs example [ci skip]
1 parent b8720e7 commit 6951f16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actionview/lib/action_view/helpers/text_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def truncate(text, options = {}, &block)
166166
# highlight('You searched for: rails', 'rails', highlighter: '<a href="search?q=\1">\1</a>')
167167
# # => "You searched for: <a href=\"search?q=rails\">rails</a>"
168168
#
169-
# highlight('You searched for: rails', 'rails') { |match| link_to(search_path(q: match, match)) }
169+
# highlight('You searched for: rails', 'rails') { |match| link_to(search_path(q: match)) }
170170
# # => "You searched for: <a href=\"search?q=rails\">rails</a>"
171171
#
172172
# highlight('<a href="javascript:alert(\'no!\')">ruby</a> on rails', 'rails', sanitize: false)

0 commit comments

Comments
 (0)