class HTML::Tokenizer

def scan_text

Scan all text up to the next < character and return it.
def scan_text
  "#{@scanner.getch}#{@scanner.scan(/[^<]*/)}"
end