Flowdock

Class deprecated or moved

This class is deprecated or moved on the latest stable version. The last existing version (v4.1.8) is shown here.

A simple HTML tokenizer. It simply breaks a stream of text into tokens, where each token is a string. Each string represents either “text”, or an HTML element.

This currently assumes valid XHTML, which means no free < or > characters.

Usage:

tokenizer = HTML::Tokenizer.new(text)
while token = tokenizer.next
  p token
end
Show files where this class is defined (1 file)
Register or log in to add new notes.