diff --git a/actionview/lib/action_view/helpers/text_helper.rb b/actionview/lib/action_view/helpers/text_helper.rb index 9943e19714..7cfbca5b6f 100644 --- a/actionview/lib/action_view/helpers/text_helper.rb +++ b/actionview/lib/action_view/helpers/text_helper.rb @@ -82,6 +82,9 @@ module ActionView # # => "And they f... (continued)" # # truncate("
Once upon a time in a world far far away
") + # # => "<p>Once upon a time in a wo..." + # + # truncate("Once upon a time in a world far far away
", escape: false) # # => "Once upon a time in a wo..." # # truncate("Once upon a time in a world far far away") { link_to "Continue", "#" }