Class | Loofah::Scrubbers::Escape |
In: |
lib/loofah/scrubbers.rb
|
Parent: | Scrubber |
+:escape+ performs HTML entity escaping on the unknown/unsafe tags:
unsafe_html = "ohai! <div>div is safe</div> <foo>but foo is <b>not</b></foo>" Loofah.fragment(unsafe_html).scrub!(:escape) => "ohai! <div>div is safe</div> <foo>but foo is <b>not</b></foo>"