Permalink
Browse files

Fixed documentation. [ci skip]

  • Loading branch information...
1 parent 27bcec2 commit 9882ec4a50eb64d1024740bbd3ebc4cf31b8e0d3 @kud86 kud86 committed Jan 4, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 actionview/lib/action_view/helpers/text_helper.rb
View
3 actionview/lib/action_view/helpers/text_helper.rb
@@ -82,6 +82,9 @@ def safe_concat(string)
# # => "And they f... (continued)"
#
# truncate("<p>Once upon a time in a world far far away</p>")
+ # # => "&lt;p&gt;Once upon a time in a wo..."
+ #
+ # truncate("<p>Once upon a time in a world far far away</p>", escape: false)
# # => "<p>Once upon a time in a wo..."
#
# truncate("Once upon a time in a world far far away") { link_to "Continue", "#" }

0 comments on commit 9882ec4

Please sign in to comment.