class Rails::HTML5::FullSanitizer

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..."