Html::rel()
Add noreferrer to rels when target is _blank
Html::rel(string|null $rel = null, string|null $target = null): string|null
Parameters
Name | Type | Default | Description |
---|---|---|---|
$rel | string ornull |
null
|
Current rel value |
$target | string ornull |
null
|
Current target value |
Return types
string
ornull
New `rel` value or `null` if not needed
Parent class
Kirby\Cms\Html
inherited from Kirby\Toolkit\Html