@@ -177,7 +177,7 module ApplicationHelper | |||
|
177 | 177 | |
|
178 | 178 | # finally textilize text |
|
179 | 179 | @do_textilize ||= (Setting.text_formatting == 'textile') && (ActionView::Helpers::TextHelper.method_defined? "textilize") |
|
180 |
text = @do_textilize ? |
|
|
180 | text = @do_textilize ? RedCloth.new(auto_link(text), [:hard_breaks]).to_html : simple_format(auto_link(h(text))) | |
|
181 | 181 | end |
|
182 | 182 | |
|
183 | 183 | # Same as Rails' simple_format helper without using paragraphs |
General Comments 0
You need to be logged in to leave comments.
Login now