VuFind API Documentation

Linkify extends AbstractHelper
in package

Linkify a string so that the links become clickable HTML

Tags
category

VuFind

author

Ere Maijala ere.maijala@helsinki.fi

author

Volodymyr Stelmakh 2980619+vstelmakh@users.noreply.github.com

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Wiki

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)

Return values
string

Search results