Reference

Html::email()

Generates an "a mailto" tag

Html::email(string $email, string $text = null, array $attr = [ ]): string

Parameters

Name Type Default Description
$email string

The url for the a tag

$text string null

The optional text. If null, the url will be used as text

$attr array [ ]

Additional attributes for the tag

Return type

string

Source code

kirby/src/Toolkit/Html.php#L168