SimpleHtmlLexer::__construct PHP Method

__construct() public method

Sets up the lexer with case insensitive matching and adds the HTML handlers.
public __construct ( SimpleSaxParser $parser )
$parser SimpleSaxParser Handling strategy by reference.
    public function __construct($parser)
    {
        parent::__construct($parser, 'text');
        $this->mapHandler('text', 'acceptTextToken');
        $this->addSkipping();
        foreach ($this->getParsedTags() as $tag) {
            $this->addTag($tag);
        }
        $this->addInTagTokens();
    }