: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.fragment(unsafe_html).scrub!(:strip) => "ohai! <div>div is safe</div> but foo is <b>not</b>"
Generated with the Darkfish Rdoc Generator 2.