public function reset($string, $flush = false, $cacheKey = '') {
        $this->_errors = array();
        $this->_nodes = array();
        $this->_blacklist = array();
        $this->_whitelist = array();
        $this->_parsed = '';
        $this->_stripped = '';
        $this->_string = $this->escapeHtml($string);
        $this->_cacheKey = $cacheKey;

        if ($flush) {
            $this->resetFilters();
            $this->resetHooks();
            $this->_paths = array();
        }

        return $this;
    }
public function reset($string, $flush = false, $cacheKey = '') {
        $this->_errors = array();
        $this->_nodes = array();
        $this->_blacklist = array();
        $this->_whitelist = array();
        $this->_parsed = '';
        $this->_stripped = '';
        $this->_string = $this->escapeHtml($string);
        $this->_cacheKey = $cacheKey;

        if ($flush) {
            $this->resetFilters();
            $this->resetHooks();
            $this->_paths = array();
        }

        return $this;
    }
public function reset ( $ string , $ flush = false , $ cacheKey = '' ) { $ this -> _errors = array ( ) ; $ this -> _nodes = array ( ) ; $ this -> _blacklist = array ( ) ; $ this -> _whitelist = array ( ) ; $ this -> _parsed = '' ; $ this -> _stripped = '' ; $ this -> _string = $ this -> escapeHtml ( $ string ) ; $ this -> _cacheKey = $ cacheKey ; if ( $ flush ) { $ this -> resetFilters ( ) ; $ this -> resetHooks ( ) ; $ this -> _paths = array ( ) ; } return $ this ; }
Reset the parser to a new string.

@param string $string
@param bool $flush
@param string $cacheKey
@return \Decoda\Decoda
Reset the parser to a new string .