TwistPHP Documentation

buildlinkList

File path: dist/twist/Core/Models/String/Html2Text.model.php
Namespace: Twist\Core\Models\String
Extends:

buildlinkListHelper function called by preg_replace() on link replacement.
Maintains an internal list of links to be displayed at the end of the
text, with numeric indices to the original point in the text they
appeared. Also makes an effort at identifying and handling absolute
and relative links.

Parameters

Name Type Description
$linkn/a
$displayn/a
[$linkOverride = null]n/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$link = ;
$display = ;
$linkOverride null;

//Call the function buildlinkList with the example vars
$resHtml2Text = new \Twist\Core\Models\String\Html2Text();
$resHtml2Text -> buildlinkList($link$display$linkOverride);