Module: Formol::ViewHelpers::FormatHelper

Defined in:
lib/formol/view_helpers/format_helper.rb

Instance Method Summary collapse

Instance Method Details

#formol_format(text) ⇒ Object



4
5
6
7
8
9
# File 'lib/formol/view_helpers/format_helper.rb', line 4

def formol_format(text)
  formatter = Formol.config.formatter.new

  # no need to sanitize or strip_tags, formatter has to handle it!
  formatter.to_html(text)
end