Html::email()
Generates an <a>
tag with mailto:
Html::email(string $email, string|array|null $text = null, array $attr = [ ]): string
Parameters
Name | Type | Default | Description |
---|---|---|---|
$emailrequired | string |
no default value | The email address |
$text | string orarray ornull |
null
|
The optional text; if null , the email address will be used as text |
$attr | array |
[ ]
|
Additional attributes for the tag |
Return type
string
The generated HTML
Parent class
Kirby\Cms\Html
inherited from Kirby\Toolkit\Html