protected function resetState()
    {
        $this->notConverted = [];
        $this->skipConversion = false;
        $this->buffer = [];
        $this->indent = '';
        $this->stack = [];
        $this->lineBreaks = 0;
        $this->lastClosedTag = '';
        $this->lastWasBlockTag = false;
        $this->footnotes = [];
    }
protected function resetState()
    {
        $this->notConverted = [];
        $this->skipConversion = false;
        $this->buffer = [];
        $this->indent = '';
        $this->stack = [];
        $this->lineBreaks = 0;
        $this->lastClosedTag = '';
        $this->lastWasBlockTag = false;
        $this->footnotes = [];
    }
protected function resetState ( ) { $ this -> notConverted = [ ] ; $ this -> skipConversion = false ; $ this -> buffer = [ ] ; $ this -> indent = '' ; $ this -> stack = [ ] ; $ this -> lineBreaks = 0 ; $ this -> lastClosedTag = '' ; $ this -> lastWasBlockTag = false ; $ this -> footnotes = [ ] ; }
Resetting the state forces the instance to behave as a fresh instance.
Ideal for running within a loop where you want to maintain a single instance.
Resetting the state forces the instance to behave as a fresh instance . Ideal for running within a loop where you want to maintain a single instance .