Linkify
extends AbstractHelper
in package
Linkify a string so that the links become clickable HTML
Tags
Table of Contents
- $urlHighlight : UrlHighlight
- Url highlighter
- __construct() : mixed
- Constructor
- __invoke() : string
- Replace urls and emails by html tags
Properties
$urlHighlight
Url highlighter
protected
UrlHighlight
$urlHighlight
Methods
__construct()
Constructor
public
__construct(UrlHighlight $urlHighlight) : mixed
Parameters
- $urlHighlight : UrlHighlight
-
Url highlighter
Return values
mixed —__invoke()
Replace urls and emails by html tags
public
__invoke(string $string) : string
Parameters
- $string : string
-
String to linkify (must be HTML-escaped)