Sha256: 1c32546544577a2cfcdb7aae6cc4eede26eab7a45166fc17a5c0d0fbddb2e8ed

Contents?: true

Size: 270 Bytes

Versions: 3

Compression:

Stored size: 270 Bytes

Contents

module Formol
  module ViewHelpers
    module FormatHelper
      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
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
formol-0.0.6 lib/formol/view_helpers/format_helper.rb
formol-0.0.5 lib/formol/view_helpers/format_helper.rb
formol-0.0.4 lib/formol/view_helpers/format_helper.rb