Module: Rails::HTML::Concern::Parser::HTML4

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

Instance Method Summary collapse

Instance Method Details

#parse_fragment(html) ⇒ Object



45
46
47
# File 'lib/rails/html/sanitizer.rb', line 45

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