class Loofah::Scrubbers::Strip

scrub!(:strip)

:strip removes unknown/unsafe tags, but leaves behind the pristine contents:

unsafe_html = "ohai! <div>div is safe</div> <foo>but foo is <b>not</b></foo>"
Loofah.html5_fragment(unsafe_html).scrub!(:strip)
=> "ohai! <div>div is safe</div> but foo is <b>not</b>"