@@ -128,7 +128,7 module ApplicationHelper | |||
|
128 | 128 | |
|
129 | 129 | # finally textilize text |
|
130 | 130 | @do_textilize ||= (Setting.text_formatting == 'textile') && (ActionView::Helpers::TextHelper.method_defined? "textilize") |
|
131 |
text = @do_textilize ? auto_link(RedCloth.new(text |
|
|
131 | text = @do_textilize ? auto_link(RedCloth.new(text).to_html) : simple_format(auto_link(h(text))) | |
|
132 | 132 | end |
|
133 | 133 | |
|
134 | 134 | def error_messages_for(object_name, options = {}) |
General Comments 0
You need to be logged in to leave comments.
Login now