Method: HTMLTree::Parser#initialize
- Defined in:
- lib/web/htmltools/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).
29 30 31 32 |
# File 'lib/web/htmltools/tree.rb', line 29 def initialize(verbose=false, strip_white=true) super reset end |