Method: HTMLTree::Parser#initialize

Defined in:
lib/html/tree.rb

#initialize(verbose = false, strip_white = true) ⇒ Parser

verbose

if true, will warn to $stderr on unknown

tags/entities/characters, as well as missing end tags and extra end tags.

strip_white

if true, remove all non-essential whitespace. Note

that there are browser bugs that may cause this to change the appearance of HTML (even though it shouldn’t by the standard).



30
31
32
33
# File 'lib/html/tree.rb', line 30

def initialize(verbose=false, strip_white=true)
  super
  reset
end