app/helpers/decidim/proposals/application_helper.rb in decidim-proposals-0.26.1 vs app/helpers/decidim/proposals/application_helper.rb in decidim-proposals-0.26.2
- old
+ new
@@ -100,10 +100,10 @@
(@proposal.official? || @proposal.official_meeting?) && not_from_participatory_text(@proposal)
end
# If the content is safe, HTML tags are sanitized, otherwise, they are stripped.
def render_proposal_body(proposal)
- render_sanitized_content(proposal, :body)
+ Decidim::ContentProcessor.render(render_sanitized_content(proposal, :body), "div")
end
# Returns :text_area or :editor based on the organization' settings.
def text_editor_for_proposal_body(form)
options = {