class HoboFields::Types::MarkdownString

Public Instance Methods

to_html(xmldoctype = true) click to toggle source
# File lib/hobo_fields/types/markdown_string.rb, line 20
def to_html(xmldoctype = true)
  blank? ? "" : HoboFields::SanitizeHtml.sanitize(@@markdown_class.new(self).to_html)
end