RemexHtml/Tokenizer/Tokenizer.php
public function execute( $options = [] ) {
		if ( isset( $options['state'] ) ) {
			$this->state = $options['state'];
		} else {
			$this->state = self::STATE_START;
		}

		if ( isset( $options['fragmentNamespace'] ) ) {
			$this->setFragmentContext( $options['fragmentNamespace'], $options['fragmentName'] );
		} else {
			$this->fragmentNamespace = null;
			$this->fragmentName = null;
		}
		$this->appropriateEndTag = isset( $options['appropriateEndTag'] ) ?
			$options['appropriateEndTag'] : null;
		$this->preprocess();
		$this->listener->startDocument( $this, $this->fragmentNamespace, $this->fragmentName );

		$this->executeInternal( true );
	}
public function execute( $options = [] ) {
		if ( isset( $options['state'] ) ) {
			$this->state = $options['state'];
		} else {
			$this->state = self::STATE_START;
		}

		if ( isset( $options['fragmentNamespace'] ) ) {
			$this->setFragmentContext( $options['fragmentNamespace'], $options['fragmentName'] );
		} else {
			$this->fragmentNamespace = null;
			$this->fragmentName = null;
		}
		$this->appropriateEndTag = isset( $options['appropriateEndTag'] ) ?
			$options['appropriateEndTag'] : null;
		$this->preprocess();
		$this->listener->startDocument( $this, $this->fragmentNamespace, $this->fragmentName );

		$this->executeInternal( true );
	}
public function execute ( $ options = [ ] ) { if ( isset ( $ options [ 'state' ] ) ) { $ this -> state = $ options [ 'state' ] ; } else { $ this -> state = self :: STATE_START ; } if ( isset ( $ options [ 'fragmentNamespace' ] ) ) { $ this -> setFragmentContext ( $ options [ 'fragmentNamespace' ] , $ options [ 'fragmentName' ] ) ; } else { $ this -> fragmentNamespace = null ; $ this -> fragmentName = null ; } $ this -> appropriateEndTag = isset ( $ options [ 'appropriateEndTag' ] ) ? $ options [ 'appropriateEndTag' ] : null ; $ this -> preprocess ( ) ; $ this -> listener -> startDocument ( $ this , $ this -> fragmentNamespace , $ this -> fragmentName ) ; $ this -> executeInternal ( true ) ; }
Run the tokenizer on the whole input stream. This is the normal entry point.

@param array $options An associative array of options:
- state : One of the STATE_* constants, a state in which to start.
- appropriateEndTag : The "appropriate end tag", which needs to be set
if entering one of the raw text states.
- fragmentNamespace : The fragment namespace
- fragmentName : The fragment tag name
Run the tokenizer on the whole input stream . This is the normal entry point .