Skip to content

Kirby 3.5.7.1

Html::rel()

Add noopener & noreferrer to rels when target is _blank

Html::rel(string $rel = null, string $target = null): string|null

Parameters

Name Type Default Description
$rel string null Current rel value
$target string null Current target value

Return type

string|null

Parent class

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