提交 81066b11 编写于 作者: R Robin Dupret

Merge pull request #13587 from kud86/change_truncate_examples

Fixed truncate documentation. [ci skip]
......@@ -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", "#" }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册