Salve, ho una stringa:
$string="testo testo testo <titolo>testo</titolo> testo testo testo testo ";

quindi all'interno ci sono tag xml, vorrei sostituire qualunque tag con uno <span> o un <p>.
Come fare?