Html::rel()
Ensures a safe default rel for links with target _blank. Adds noreferrer (which also implies noopener) when no explicit rel is set. Pass an explicit rel to opt out.
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