mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Safely concat the ending tag to simple_format or it will be escaped
This commit is contained in:
@@ -332,7 +332,7 @@ module ActionView
|
||||
text.gsub!(/\n\n+/, "</p>\n\n#{start_tag}") # 2+ newline -> paragraph
|
||||
text.gsub!(/([^\n]\n)(?=[^\n])/, '\1<br />') # 1 newline -> br
|
||||
text.insert 0, start_tag
|
||||
text << "</p>"
|
||||
text.safe_concat("</p>")
|
||||
end
|
||||
|
||||
# Turns all URLs and e-mail addresses into clickable links. The <tt>:link</tt> option
|
||||
|
||||
Reference in New Issue
Block a user