1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

Fix simple_format output example ending tag
This commit is contained in:
Rafael Mendonça França 2013-07-09 12:12:08 -07:00
commit 4b6886a140

View file

@ -254,7 +254,7 @@ module ActionView
# # => "<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)