$testo = str_replace("[", "<", $row['testo']);
$testo = str_replace("]", ">", $testo);
echo $testo

prova così...