Html::email()
Generates an a
tag with mailto:
Html::email(string $email, mixed $text = null, array $attr = [ ]): string
Parameters
Name | Type | Default | Description |
---|---|---|---|
$email |
string |
– | The url for the a tag |
$text |
mixed |
null |
The optional text. If null, the url will be used as text |
$attr |
array |
[ ] |
Additional attributes for the tag |
Return type
string
Inherited from
Kirby\Toolkit\Html