提交 4b6886a1 编写于 作者: R Rafael Mendonça França

Merge pull request #11383 from mattdbridges/simple-format-doc-fix

Fix simple_format output example ending tag
......@@ -254,7 +254,7 @@ def word_wrap(text, options = {})
# # => "<p>Unblinkable.</p>"
#
# simple_format("<blink>Blinkable!</blink> It's true.", {}, sanitize: false)
# # => "<p><blink>Blinkable!</span> It's true.</p>"
# # => "<p><blink>Blinkable!</blink> It's true.</p>"
def simple_format(text, html_options = {}, options = {})
wrapper_tag = options.fetch(:wrapper_tag, :p)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册