Sha256: 14d87ed6029c5418cf4eb62d4ebf39bf1b61b9017fc8b868e9465997f51c55f2
Contents?: true
Size: 420 Bytes
Versions: 24
Compression:
Stored size: 420 Bytes
Contents
require 'redcloth' module HoboFields class TextileString < HoboFields::Text include SanitizeHtml def to_html(xmldoctype = true) if blank? "" else textilized = RedCloth.new(self, [ :hard_breaks ]) textilized.hard_breaks = true if textilized.respond_to?("hard_breaks=") textilized.to_html end end HoboFields.register_type(:textile, self) end end
Version data entries
24 entries across 24 versions & 1 rubygems