Class: Decidim::AdminInputScrubber

Inherits:
UserInputScrubber show all
Defined in:
decidim-core/app/scrubbers/decidim/admin_input_scrubber.rb

Overview

Use this class as a scrubber to sanitize admin user input. The default scrubbed provided by Rails does not allow ‘iframe`s, and we are using them to embed videos, so we need to provide a whole new scrubber.

Example:

sanitize(@page.body, scrubber: Decidim::AdminInputScrubber.new)

Lists of default tags and attributes are extracted from stackoverflow.com/a/35073814/2110884.

Method Summary

Methods inherited from UserInputScrubber

#initialize

Constructor Details

This class inherits a constructor from Decidim::UserInputScrubber