src/Tao/Templating/Helpers/Modifier.php
public static function emailEncode($sEmail)
	{
		$sEmail = bin2hex($sEmail);
		$sEmail = chunk_split($sEmail, 2, '%');
		$sEmail = '%' . substr($sEmail, 0, strlen($sEmail) - 1);
		return $sEmail;
	}
public static function emailEncode($sEmail)
	{
		$sEmail = bin2hex($sEmail);
		$sEmail = chunk_split($sEmail, 2, '%');
		$sEmail = '%' . substr($sEmail, 0, strlen($sEmail) - 1);
		return $sEmail;
	}
public static function emailEncode ( $ sEmail ) { $ sEmail = bin2hex ( $ sEmail ) ; $ sEmail = chunk_split ( $ sEmail , 2 , '%' ) ; $ sEmail = '%' . substr ( $ sEmail , 0 , strlen ( $ sEmail ) - 1 ) ; return $ sEmail ; }
Encode an email address for HTML.

@param string $sEmail
@return string encoded email
Encode an email address for HTML .