Returns the text with all the Textile codes turned into HTML tags. This method is only available if RedCloth is
available.
# File actionpack/lib/action_view/helpers/text_helper.rb, line 114
def textilize(text)
if text.blank?
""
else
textilized = RedCloth.new(text, [ :hard_breaks ])
textilized.hard_breaks = true if textilized.respond_to?("hard_breaks=")
textilized.to_html
end
end