Permalink
Browse files

Disable sanitizing for post bodies

  • Loading branch information...
mutle committed Jan 29, 2012
1 parent 82a97ad commit 2470e7b485e2de0d0ae473f8bb2380c263ac4293
Showing with 3 additions and 3 deletions.
  1. +3 −3 app/helpers/channels_helper.rb
@@ -1,11 +1,11 @@
module ChannelsHelper
def format_body(post)
- text = simple_format(post.body)
+ text = simple_format(post.body, {}, :sanitize => false)
if text.length < 64000
- text = auto_link(text)
+ text = auto_link(text, :sanitize => false)
end
- text
+ text.html_safe
end
def user_link(user)

0 comments on commit 2470e7b

Please sign in to comment.