textilize(text)
public
Returns the text with all the Textile codes turned into HTML tags. This method is only available if RedCloth is
available.
Show source
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