Skip to content

Kirby 4.4.1

Html::link()

Generates an <a> link tag (without automatic email: and tel: detection)

Html::link(string $href, array|string|null $text = null, array $attr = [ ]): string

Parameters

Name Type Default Description
$href * string The URL for the <a> tag
$text array|string|null null The optional text; if null, the URL will be used as text
$attr array [ ] Additional attributes for the tag

Return type

string

Parent class

Kirby\Toolkit\Html