1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-22 06:03:27 +02:00

Issue #6 URLs should not be inside language files.

This commit is contained in:
camer0n
2025-04-09 14:18:37 -07:00
parent 23933885ca
commit 9de234324c
3 changed files with 15 additions and 8 deletions

View File

@@ -3999,6 +3999,17 @@ class e_parse
return str_replace($search, $replace, $lan);
}
public function lanLink($lan, $url, $options=[])
{
$srch =["[", "]"];
$repl = ["<a target='_blank' href='" .$url . "'>", "</a>"];
$text = defset($lan, $lan);
return str_replace($srch, $repl, $text);
}
/**
* Return an Array of all specific tags found in an HTML document and their attributes.
*