Skip to content

Commit

Permalink
remove unused Servicerender->richkink() method close #450
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-peugnet committed Oct 18, 2024
1 parent 2b11a40 commit 7de66bc
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions app/class/Servicerender.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,17 +324,6 @@ protected function description($text)
return str_replace('%DESCRIPTION%', $this->page->description(), $text);
}

/**
* Look for datas about pages.
*
* @param string $text the page text as html
*/
protected function richlink(string $text): string
{
$text = preg_replace('#<a(.*href="(https?:\/\/(.+))".*)>\2</a>#', "<a$1>$3</a>", $text);
return $text;
}

/**
* Replace plain URL with HTML link pointing to their address.
*
Expand Down

0 comments on commit 7de66bc

Please sign in to comment.