Class: Shamu::Attributes::HtmlSanitation::SimpleScrubber
- Inherits:
-
PermitScrubber
- Object
- Loofah::Scrubber
- PermitScrubber
- Shamu::Attributes::HtmlSanitation::SimpleScrubber
- Defined in:
- lib/shamu/attributes/html_sanitation.rb
Instance Method Summary collapse
Methods inherited from PermitScrubber
#initialize, #scrub, #unsafe_element?
Constructor Details
This class inherits a constructor from Shamu::Attributes::HtmlSanitation::PermitScrubber
Instance Method Details
#allowed_element?(name) ⇒ Boolean
199 200 201 |
# File 'lib/shamu/attributes/html_sanitation.rb', line 199 def allowed_element?( name ) SIMPLE_TAGS.include?( name.upcase ) end |