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-2.7.4/doc/loofah-2.12.0/ri/Loofah/TextBehavior/text-i.ri
U:RDoc::AnyMethod[iI"	text:ETI"Loofah::TextBehavior#text;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph;	[I"KReturns a plain-text version of the markup contained by the document, ;TI" with HTML entities encoded.;To:RDoc::Markup::BlankLineo;
;	[I"BThis method is significantly faster than #to_text, but isn't ;TI"3clever about whitespace around block elements.;T@o:RDoc::Markup::Verbatim;	[I">Loofah.document("<h1>Title</h1><div>Content</div>").text
;TI"# => "TitleContent"
;T:@format0o;
;	[	I";By default, the returned text will have HTML entities ;TI"Aescaped. If you want unescaped entities, and you understand ;TI"@that the result is unsafe to render in a browser, then you ;TI"#can pass an argument as shown:;T@o;;	[
I"Kfrag = Loofah.fragment("&lt;script&gt;alert('EVIL');&lt;/script&gt;")
;TI"# ok for browser:
;TI"bfrag.text                                 # => "&lt;script&gt;alert('EVIL');&lt;/script&gt;"
;TI"%# decidedly not ok for browser:
;TI"Ufrag.text(:encode_special_chars => false) # => "<script>alert('EVIL');</script>";T;
0:
@fileI"#lib/loofah/instance_methods.rb;T:0@omit_headings_from_table_of_contents_below000[[I"inner_text;To;;	[;@%;0[I"to_str;To;;	[;@%;0I"(options = {});T@%FI"TextBehavior;TcRDoc::NormalModule00