Module: Rails::HTML::Concern::Parser::HTML5

Included in:
Rails::HTML5::FullSanitizer, Rails::HTML5::LinkSanitizer, Rails::HTML5::SafeListSanitizer
Defined in:
lib/rails/html/sanitizer.rb

Instance Method Summary collapse

Instance Method Details

#parse_fragment(html) ⇒ Object



51
52
53
# File 'lib/rails/html/sanitizer.rb', line 51

def parse_fragment(html)
  Loofah.html5_fragment(html)
end