You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bridgeutopia edited this page Feb 16, 2012
·
5 revisions
More options for Redcloth
def to_html(m)
require 'redcloth'
require 'htmlentities'
coder = HTMLEntities.new
m = coder.decode(m)
m = RedCloth.new(m, [:filter_html, :sanitize_html]).to_html
m
end