public function render($xml)
	{
		if (substr($xml, 0, 3) === '<t>' && substr($xml, -4) === '</t>')
		{
			return $this->renderPlainText($xml);
		}
		else
		{
			return $this->renderRichText(preg_replace('(<[eis]>[^<]*</[eis]>)', '', $xml));
		}
	}
public function render($xml)
	{
		if (substr($xml, 0, 3) === '<t>' && substr($xml, -4) === '</t>')
		{
			return $this->renderPlainText($xml);
		}
		else
		{
			return $this->renderRichText(preg_replace('(<[eis]>[^<]*</[eis]>)', '', $xml));
		}
	}
public function render ( $ xml ) { if ( substr ( $ xml , 0 , 3 ) === '<t>' && substr ( $ xml , - 4 ) === '</t>' ) { return $ this -> renderPlainText ( $ xml ) ; } else { return $ this -> renderRichText ( preg_replace ( '(<[eis]>[^<]*</[eis]>)' , '' , $ xml ) ) ; } }
Render an intermediate representation

@param  string $xml Intermediate representation
@return string      Rendered result
Render an intermediate representation