Ma ti rifersci forse a un BBcode?
Perchè se è così è semplicissimo da realizzare
Per renderlo cliccabile devi scrivere del testo in mezzo ai due tagCodice PHP:
<?php
function decode($string)
{
$string = trim(str_replace("[LINK", "<a target='_blank' href='", $string));
$string = trim(str_replace("[/LINK]", "</a>", $string));
return $string;
}
?>
[LINK http://www.html.it].......[/LINK]
![]()