Redcloth - ok, i give up. Please help!

Just as I get one part of redcloth working, something else seems to stop

Here is my code so far…

def text_output(text)
textilized =, [:filter_html, :filter_styles ])
:glyphs_textile, :inline_textile_link))

This is what I want to do to my ‘text’…

  • Allow bold
  • Allow italic
  • Allow “links”
  • Stop all CSS & Table code in redcloth
  • Escape all other HTML
  • Format paragraphs like so

blah blah blah blah
blah blah blah</p

Does anything in my code look really wrong? Any ideas how I’d get the
results I want?

I’d really really appreciate some help with this!



This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs