Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Tokenizer.php

function Tokenizer::parse

Same name in this branch
  1. 11.1.x vendor/theseer/tokenizer/src/Tokenizer.php \TheSeer\Tokenizer\Tokenizer::parse()

Begin parsing.

This will begin scanning the document, tokenizing as it goes. Tokens are emitted into the event handler.

Tokenizing will continue until the document is completely read. Errors are emitted into the event handler, but the parser will attempt to continue parsing until the entire input stream is read.

File

vendor/masterminds/html5/src/HTML5/Parser/Tokenizer.php, line 79

Class

Tokenizer
The HTML5 tokenizer.

Namespace

Masterminds\HTML5\Parser

Code

public function parse() {
    do {
        $this->consumeData();
        // FIXME: Add infinite loop protection.
    } while ($this->carryOn);
}
RSS feed
Powered by Drupal