public function parse($text)
	{
		// Reset the parser and save the uid
		$this->reset($text);
		$uid = $this->uid;

		// Do the heavy lifting
		$this->executePluginParsers();
		$this->processTags();

		// Finalize the document
		$this->finalizeOutput();

		// Check the uid in case a plugin or a filter reset the parser mid-execution
		if ($this->uid !== $uid)
		{
			throw new RuntimeException('The parser has been reset during execution');
		}

		// Log a warning if the fixing cost limit was exceeded
		if ($this->currentFixingCost > $this->maxFixingCost)
		{
			$this->logger->warn('Fixing cost limit exceeded');
		}

		return $this->output;
	}
public function parse($text)
	{
		// Reset the parser and save the uid
		$this->reset($text);
		$uid = $this->uid;

		// Do the heavy lifting
		$this->executePluginParsers();
		$this->processTags();

		// Finalize the document
		$this->finalizeOutput();

		// Check the uid in case a plugin or a filter reset the parser mid-execution
		if ($this->uid !== $uid)
		{
			throw new RuntimeException('The parser has been reset during execution');
		}

		// Log a warning if the fixing cost limit was exceeded
		if ($this->currentFixingCost > $this->maxFixingCost)
		{
			$this->logger->warn('Fixing cost limit exceeded');
		}

		return $this->output;
	}
public function parse ( $ text ) { // Reset the parser and save the uid $ this -> reset ( $ text ) ; $ uid = $ this -> uid ; // Do the heavy lifting $ this -> executePluginParsers ( ) ; $ this -> processTags ( ) ; // Finalize the document $ this -> finalizeOutput ( ) ; // Check the uid in case a plugin or a filter reset the parser mid-execution if ( $ this -> uid !== $ uid ) { throw new RuntimeException ( 'The parser has been reset during execution' ) ; } // Log a warning if the fixing cost limit was exceeded if ( $ this -> currentFixingCost > $ this -> maxFixingCost ) { $ this -> logger -> warn ( 'Fixing cost limit exceeded' ) ; } return $ this -> output ; }
Parse a text

@param  string $text Text to parse
@return string       XML representation
Parse a text