public function mailto($email, $title = null, $attributes = [], $escape = true)
{
$email = $this->email($email);
$title = $title ?: $email;
if ($escape) {
$title = $this->entities($title);
}
$email = $this->obfuscate('mailto:') . $email;
return $this->toHtmlString('<a href="' . $email . '"' . $this->attributes($attributes) . '>' . $title . '</a>');
}
/** * Return an HTML mailto link. * * @param null|string $text * @return null|string */ public function mailto($text = null) { if (!($email = $this->object->getValue())) { return null; } return $this->html->mailto($email, $text); }