public function escape($var)
	{
		if (in_array($this->_escape, array('htmlspecialchars', 'htmlentities')))
		{
			return call_user_func($this->_escape, $var, ENT_COMPAT, $this->_charset);
		}

		return call_user_func($this->_escape, $var);
	}
public function escape($var)
	{
		if (in_array($this->_escape, array('htmlspecialchars', 'htmlentities')))
		{
			return call_user_func($this->_escape, $var, ENT_COMPAT, $this->_charset);
		}

		return call_user_func($this->_escape, $var);
	}
public function escape ( $ var ) { if ( in_array ( $ this -> _escape , array ( 'htmlspecialchars' , 'htmlentities' ) ) ) { return call_user_func ( $ this -> _escape , $ var , ENT_COMPAT , $ this -> _charset ) ; } return call_user_func ( $ this -> _escape , $ var ) ; }
Escapes a value for output in a view script.

If escaping mechanism is either htmlspecialchars or htmlentities, uses
{@link $_encoding} setting.

@param   mixed  $var  The output to escape.
@return  mixed  The escaped value.
Escapes a value for output in a view script .