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

Fix simple_format output example ending tag

This commit is contained in:
Matt Bridges 2013-07-09 14:09:26 -05:00
parent 69e7e6ba89
commit 7e1cb39f72

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)