public static function emailObfuscator($email)
    {
        $link = str_rot13('<a href="mailto:' . $email . '" rel="nofollow">' . $email . '</a>');
        $out = '<script type="text/javascript">' . "\n";
        $out .= '    document.write(\'' . $link . '\'.replace(/[a-zA-Z]/g, function(c) {' . "\n";
        $out .= '        return String.fromCharCode((c <= "Z" ? 90 : 122) >= (c = c.charCodeAt(0) + 13) ? c : c - 26);' . "\n";
        $out .= '    }));' . "\n";
        $out .= '</script>' . "\n";
        $out .= '<noscript>[' . __d('field', 'Turn on JavaScript to see the email address.') . ']</noscript>' . "\n";

        return $out;
    }
public static function emailObfuscator($email)
    {
        $link = str_rot13('<a href="mailto:' . $email . '" rel="nofollow">' . $email . '</a>');
        $out = '<script type="text/javascript">' . "\n";
        $out .= '    document.write(\'' . $link . '\'.replace(/[a-zA-Z]/g, function(c) {' . "\n";
        $out .= '        return String.fromCharCode((c <= "Z" ? 90 : 122) >= (c = c.charCodeAt(0) + 13) ? c : c - 26);' . "\n";
        $out .= '    }));' . "\n";
        $out .= '</script>' . "\n";
        $out .= '<noscript>[' . __d('field', 'Turn on JavaScript to see the email address.') . ']</noscript>' . "\n";

        return $out;
    }
public static function emailObfuscator ( $ email ) { $ link = str_rot13 ( '<a href="mailto:' . $ email . '" rel="nofollow">' . $ email . '</a>' ) ; $ out = '<script type="text/javascript">' . "\n" ; $ out .= '    document.write(\'' . $ link . '\'.replace(/[a-zA-Z]/g, function(c) {' . "\n" ; $ out .= '        return String.fromCharCode((c <= "Z" ? 90 : 122) >= (c = c.charCodeAt(0) + 13) ? c : c - 26);' . "\n" ; $ out .= '    }));' . "\n" ; $ out .= '</script>' . "\n" ; $ out .= '<noscript>[' . __d ( 'field' , 'Turn on JavaScript to see the email address.' ) . ']</noscript>' . "\n" ; return $ out ; }
Protects email address so bots can not read it.

Replaces emails address with an encoded JS script, so there is no way bots
can read an email address from the generated HTML source code.

@param string $email The email to obfuscate
@return string
Protects email address so bots can not read it .