Ma ti rifersci forse a un BBcode?
Perchè se è così è semplicissimo da realizzare

Codice PHP:
<?php
function decode($string

$string trim(str_replace("[LINK""<a target='_blank' href='"$string)); 
    
$string trim(str_replace("[/LINK]""</a>"$string)); 

return 
$string
}
?>
Per renderlo cliccabile devi scrivere del testo in mezzo ai due tag
[LINK http://www.html.it].......[/LINK]