src/HtmlBuilder.php
public function mailto($email, $title = null, array $attributes = [], $escaped = true)
    {
        $email = $this->email($email);
        $title = $title ?: $email;

        return Elements\A::make()
            ->href($this->obfuscate('mailto:').$email)
            ->attributes($attributes)
            ->html(($escaped ? $this->entities($title) : $title))
            ->render();
    }
public function mailto($email, $title = null, array $attributes = [], $escaped = true)
    {
        $email = $this->email($email);
        $title = $title ?: $email;

        return Elements\A::make()
            ->href($this->obfuscate('mailto:').$email)
            ->attributes($attributes)
            ->html(($escaped ? $this->entities($title) : $title))
            ->render();
    }
Generate a HTML link to an email address.

@param  string       $email
@param  string|null  $title
@param  array        $attributes
@param  bool         $escaped

@return \Illuminate\Support\HtmlString