Module: Rails::HTML::Concern::ComposedSanitize
- Included in:
- Rails::HTML4::FullSanitizer, Rails::HTML4::LinkSanitizer, Rails::HTML4::SafeListSanitizer, Rails::HTML5::FullSanitizer, Rails::HTML5::LinkSanitizer, Rails::HTML5::SafeListSanitizer
- Defined in:
- lib/rails/html/sanitizer.rb
Instance Method Summary collapse
Instance Method Details
#sanitize(html, options = {}) ⇒ Object
35 36 37 38 39 40 |
# File 'lib/rails/html/sanitizer.rb', line 35 def sanitize(html, = {}) return unless html return html if html.empty? serialize(scrub(parse_fragment(html), )) end |