core/tag/tags/MailTag.php
public function parse($value, $sub)
    {
        $label = $sub ?: $value;

        // if obfuscation is enabled generate tag string due to yii tag method will encode attributes.
        if ($this->obfuscate) {
            if (!$sub) {
                $label = $this->obfuscate($label);
            }
            return '<a href="'.$this->obfuscate("mailto:{$value}").'" rel="nofollow">'.$label.'</a>';
        }

        return Html::mailto($label, $value, [
            'rel' => 'nofollow',
        ]);
    }
public function parse($value, $sub)
    {
        $label = $sub ?: $value;

        // if obfuscation is enabled generate tag string due to yii tag method will encode attributes.
        if ($this->obfuscate) {
            if (!$sub) {
                $label = $this->obfuscate($label);
            }
            return '<a href="'.$this->obfuscate("mailto:{$value}").'" rel="nofollow">'.$label.'</a>';
        }

        return Html::mailto($label, $value, [
            'rel' => 'nofollow',
        ]);
    }
public function parse ( $ value , $ sub ) { $ label = $ sub ? : $ value ; // if obfuscation is enabled generate tag string due to yii tag method will encode attributes. if ( $ this -> obfuscate ) { if ( ! $ sub ) { $ label = $ this -> obfuscate ( $ label ) ; } return '<a href="' . $ this -> obfuscate ( "mailto:{$value}" ) . '" rel="nofollow">' . $ label . '</a>' ; } return Html :: mailto ( $ label , $ value , [ 'rel' => 'nofollow' , ] ) ; }
Generate the Mail Tag.

@param string $value The Brackets value `[]`.
@param string $sub The optional Parentheses value `()`
@see \luya\tag\TagInterface::parse()
@return string The parser tag.
Generate the Mail Tag .