protected function escapePHPOutput($php, $context)
	{
		if ($context === 'raw')
		{
			return $php;
		}

		$escapeMode = ($context === 'attribute') ? ENT_COMPAT : ENT_NOQUOTES;

		return 'htmlspecialchars(' . $php . ',' . $escapeMode . ')';
	}
protected function escapePHPOutput($php, $context)
	{
		if ($context === 'raw')
		{
			return $php;
		}

		$escapeMode = ($context === 'attribute') ? ENT_COMPAT : ENT_NOQUOTES;

		return 'htmlspecialchars(' . $php . ',' . $escapeMode . ')';
	}
protected function escapePHPOutput ( $ php , $ context ) { if ( $ context === 'raw' ) { return $ php ; } $ escapeMode = ( $ context === 'attribute' ) ? ENT_COMPAT : ENT_NOQUOTES ; return 'htmlspecialchars(' . $ php . ',' . $ escapeMode . ')' ; }
Escape the output of given PHP expression

@param  string $php     PHP expression
@param  string $context Either "raw", "text" or "attribute"
@return string          PHP expression, including escaping mechanism
Escape the output of given PHP expression