Class | Loofah::Scrubbers::Strip |
In: |
lib/loofah/scrubbers.rb
|
Parent: | Scrubber |
+: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>"