buongiorno a tutti..
premetto che sono almeno 3 ora che cerco info in rete e su questo forum e che non trovo risposta, inoltre le regexp proprio non mi vanno giu 
dal' esempio di php.net ecco il pattern
Codice PHP:
function HTMLconvert($text)
{
preg_match_all("|<[^>]+>(.*)</[^>]+>|U",$text,$tmp_texts, PREG_PATTERN_ORDER);
$entities=array();
foreach($tmp_texts[1] as $t_key=>$t_val)
{
$entities[$t_key]=htmlentities($t_val);
}
$text=str_replace($tmp_texts[1],$entities,$text);
return ($text);
}
$a='[b]questo è un <span>test</span>[/b]';
$b='questo è un test';
echo HTMLconvert($a)."
";
echo HTMLconvert($b);
nell' esempio con $a
il risultato è
codice:
questo è un <span>test</span>
questo è un test
tralasciando il discorso utf8 ecc.. come posso rendere ricorsivo il meccanismo?
grazie a tutti pe ril supporto