includes/Parser.php
public function textContent(DOMElement $element, $implied=false)
	{
				return preg_replace(
						'/(^[\t\n\f\r ]+| +(?=\n)|(?<=\n) +| +(?= )|[\t\n\f\r ]+$)/',
						'',
						$this->elementToString($element, $implied)
				);
	}
public function textContent(DOMElement $element, $implied=false)
	{
				return preg_replace(
						'/(^[\t\n\f\r ]+| +(?=\n)|(?<=\n) +| +(?= )|[\t\n\f\r ]+$)/',
						'',
						$this->elementToString($element, $implied)
				);
	}
public function textContent ( DOMElement $ element , $ implied = false ) { return preg_replace ( '/(^[\t\n\f\r ]+| +(?=\n)|(?<=\n) +| +(?= )|[\t\n\f\r ]+$)/' , '' , $ this -> elementToString ( $ element , $ implied ) ) ; }
The following two methods implements plain text parsing.
@param DOMElement $element
@param bool $implied
@see https://wiki.zegnat.net/media/textparsing.html
The following two methods implements plain text parsing .