##// END OF EJS Templates
Rails3: helper: use html_safe at simple_format_without_paragraph of ApplicationHelper...
Toshi MARUYAMA -
r7465:55f10b90f4ba
parent child
Show More
@@ -774,7 +774,8 module ApplicationHelper
774 text.to_s.
774 text.to_s.
775 gsub(/\r\n?/, "\n"). # \r\n and \r -> \n
775 gsub(/\r\n?/, "\n"). # \r\n and \r -> \n
776 gsub(/\n\n+/, "<br /><br />"). # 2+ newline -> 2 br
776 gsub(/\n\n+/, "<br /><br />"). # 2+ newline -> 2 br
777 gsub(/([^\n]\n)(?=[^\n])/, '\1<br />') # 1 newline -> br
777 gsub(/([^\n]\n)(?=[^\n])/, '\1<br />'). # 1 newline -> br
778 html_safe
778 end
779 end
779
780
780 def lang_options_for_select(blank=true)
781 def lang_options_for_select(blank=true)
General Comments 0
You need to be logged in to leave comments. Login now