From 9882ec4a50eb64d1024740bbd3ebc4cf31b8e0d3 Mon Sep 17 00:00:00 2001 From: Konstantin Wlasow Date: Sat, 4 Jan 2014 16:18:16 +0600 Subject: [PATCH] Fixed documentation. [ci skip] --- actionview/lib/action_view/helpers/text_helper.rb | 3 +++ 1 file changed, 3 insertions(+) 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", "#" }