HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/ruby-3.0.2/doc/loofah-2.12.0/ri/Loofah/Scrubbers/Whitewash/cdesc-Whitewash.ri
U:RDoc::NormalClass[iI"Whitewash:ETI"!Loofah::Scrubbers::Whitewash;TI"Loofah::Scrubber;To:RDoc::Markup::Document:@parts[o;;[S:RDoc::Markup::Heading:
leveli:	textI"scrub!(:whitewash);To:RDoc::Markup::BlankLineo:RDoc::Markup::Paragraph;[	I"B+:whitewash+ removes all comments, styling and attributes in ;TI"Faddition to doing markup-fixer-uppery and pruning unsafe tags. I ;TI"Elike to call this "whitewashing", since it's like putting a new ;TI"Blayer of paint on top of the HTML input to make it look nice.;T@o:RDoc::Markup::Verbatim;[I"emessy_markup = "ohai! <div id='foo' class='bar' style='margin: 10px'>div with attributes</div>"
;TI"6Loofah.fragment(messy_markup).scrub!(:whitewash)
;TI"/=> "ohai! <div>div with attributes</div>"
;T:@format0o;
;[
I"AOne use case for this scrubber is to clean up HTML that was ;TI"Ccut-and-pasted from Microsoft Word into a WYSIWYG editor or a ;TI"Drich text editor. Microsoft's software is famous for injecting ;TI"Call kinds of cruft into its HTML output. Who needs that crap? ;TI"Certainly not me.;T:
@fileI"lib/loofah/scrubbers.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[[[[[I"
class;T[[:public[[I"new;TI"lib/loofah/scrubbers.rb;T[:protected[[:private[[I"
instance;T[[;[[I"
scrub;T@/[;[[;[[[U:RDoc::Context::Section[i0o;;[;0;0[@#I"Loofah::Scrubbers;TcRDoc::NormalModule