We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c05d8ed commit 52affa8Copy full SHA for 52affa8
actionview/lib/action_view/helpers/text_helper.rb
@@ -118,7 +118,7 @@ def safe_concat(string)
118
# # => "<p>Once upon a time in a wo..."
119
#
120
# truncate("Once upon a time in a world far far away") { link_to "Continue", "#" }
121
- # # => "Once upon a time in a wo...<a href="#">Continue</a>"
+ # # => "Once upon a time in a world...<a href=\"#\">Continue</a>"
122
def truncate(text, options = {}, &block)
123
if text
124
length = options.fetch(:length, 30)
0 commit comments