Better textilize
This my not be what you need, but it's exactly what I need. :)
1 2 def textilize(text) 3 RedCloth.new(text.gsub(/</, '<').gsub(/>/, '>')).to_html 4 end
DZone Snippets > hmans > textilize
12964 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Hendrik Mans http://www.mans.de
1 2 def textilize(text) 3 RedCloth.new(text.gsub(/</, '<').gsub(/>/, '>')).to_html 4 end