Just as I get one part of redcloth working, something else seems to stop
working.
Here is my code so far…
def text_output(text)
textilized = RedCloth.new(text, [:filter_html, :filter_styles ])
simple_format(textilized.to_html(:inline_textile_span,
:glyphs_textile, :inline_textile_link))
end
This is what I want to do to my ‘text’…
- Allow bold
- Allow italic
- Allow “links”:www.link.com
- 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!
Thanks
Scott