protected function mergeConsecutiveLiteralOutputElements(DOMDocument $ir)
	{
		foreach ($this->query('//output[@type="literal"]') as $output)
		{
			$disableOutputEscaping = $output->getAttribute('disable-output-escaping');
			while ($this->nextSiblingIsLiteralOutput($output, $disableOutputEscaping))
			{
				$output->nodeValue = htmlspecialchars($output->nodeValue . $output->nextSibling->nodeValue);
				$output->parentNode->removeChild($output->nextSibling);
			}
		}
	}
protected function mergeConsecutiveLiteralOutputElements(DOMDocument $ir)
	{
		foreach ($this->query('//output[@type="literal"]') as $output)
		{
			$disableOutputEscaping = $output->getAttribute('disable-output-escaping');
			while ($this->nextSiblingIsLiteralOutput($output, $disableOutputEscaping))
			{
				$output->nodeValue = htmlspecialchars($output->nodeValue . $output->nextSibling->nodeValue);
				$output->parentNode->removeChild($output->nextSibling);
			}
		}
	}
protected function mergeConsecutiveLiteralOutputElements ( DOMDocument $ ir ) { foreach ( $ this -> query ( '//output[@type="literal"]' ) as $ output ) { $ disableOutputEscaping = $ output -> getAttribute ( 'disable-output-escaping' ) ; while ( $ this -> nextSiblingIsLiteralOutput ( $ output , $ disableOutputEscaping ) ) { $ output -> nodeValue = htmlspecialchars ( $ output -> nodeValue . $ output -> nextSibling -> nodeValue ) ; $ output -> parentNode -> removeChild ( $ output -> nextSibling ) ; } } }
Merge consecutive literal outputs

@param  DOMDocument $ir
@return void
Merge consecutive literal outputs