Skip to content

Kirby 5.0.2

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 stringornull null Current rel value
$target stringornull null Current target value

Return types

stringornull

New `rel` value or `null` if not needed

Parent class

Kirby\Cms\Html inherited from Kirby\Toolkit\Html