Module: Decidim::Plans::RichPresenter
- Extended by:
- ActiveSupport::Concern
- Includes:
- ActionView::Helpers::TextHelper
- Included in:
- Admin::ExportPlansToBudgets, ContentPresenter, PlanPresenter
- Defined in:
- app/presenters/concerns/decidim/plans/rich_presenter.rb
Instance Method Summary collapse
Instance Method Details
#plain_content(content) ⇒ Object
9 10 11 |
# File 'app/presenters/concerns/decidim/plans/rich_presenter.rb', line 9 def plain_content(content) sanitize(content, tags: []) end |
#rich_content(content) ⇒ Object
13 14 15 |
# File 'app/presenters/concerns/decidim/plans/rich_presenter.rb', line 13 def rich_content(content) simple_format(sanitize(content, tags: ), wrapper_tag: nil) end |