Sha256: 38a585c997e1b582a37c7c7fcef66ead7a4e1e031c80a1643377939b24950eb3
Contents?: true
Size: 475 Bytes
Versions: 8
Compression:
Stored size: 475 Bytes
Contents
# frozen_string_literal: true module Decidim module Plans module RichPresenter extend ActiveSupport::Concern include ActionView::Helpers::TextHelper def plain_content(content) sanitize(content, tags: []) end def rich_content(content) simple_format(sanitize(content, tags: allowed_rich_tags), wrapper_tag: nil) end protected def allowed_rich_tags %w(strong em b i) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems