选择语言 :

 Core_HTML::email

Generates an obfuscated version of an email address. Helps prevent spam robots from finding email addresses.

echo HTML::email($address);
string Core_HTML::email( string $email )
uses
HTML::obfuscate

参数列表

参数 类型 描述 默认值
$email string Email address
返回值
  • string
File: ./core/classes/html.class.php
public static function email($email)
{
    // Make sure the at sign is always obfuscated
    return str_replace('@', '@', HTML::obfuscate($email));
}