Class: Rails::HTML5::FullSanitizer
- Inherits:
-
Rails::HTML::Sanitizer
- Object
- Rails::HTML::Sanitizer
- Rails::HTML5::FullSanitizer
- Includes:
- Rails::HTML::Concern::ComposedSanitize, Rails::HTML::Concern::Parser::HTML5, Rails::HTML::Concern::Scrubber::Full, Rails::HTML::Concern::Serializer::UTF8Encode
- Defined in:
- lib/rails/html/sanitizer.rb
Overview
Rails::HTML5::FullSanitizer
Removes all tags from HTML5 but strips out scripts, forms and comments.
full_sanitizer = Rails::HTML5::FullSanitizer.new
full_sanitizer.sanitize("<b>Bold</b> no more! <a href='more.html'>See more here</a>...")
# => "Bold no more! See more here..."
Constant Summary
Constants inherited from Rails::HTML::Sanitizer
Rails::HTML::Sanitizer::VERSION
Method Summary
Methods included from Rails::HTML::Concern::Serializer::UTF8Encode
Methods included from Rails::HTML::Concern::Scrubber::Full
Methods included from Rails::HTML::Concern::Parser::HTML5
Methods included from Rails::HTML::Concern::ComposedSanitize
Methods inherited from Rails::HTML::Sanitizer
best_supported_vendor, html5_support?, #sanitize
Methods included from Rails::HTML4::Sanitizer::VendorMethods
#full_sanitizer, #link_sanitizer, #safe_list_sanitizer, #white_list_sanitizer