Hola, tengo el siguiente texto:
Código HTML:
<span class="underline"> It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</span>Lorem Ipsum is simply dummy text of the printing and typesetting industry.<br /></span><span class="italic">Lorem Ipsum is simply dummy text of the printing and typesetting industry.<br /></span><span class="underline">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</span><br /><br /><span class="italic bold">Lorem Ipsum is simply dummy text of the printing and typesetting industry.<br /></span><span class="bold italic">Lorem Ipsum is simply dummy text of the printing and typesetting industry.<br /></span><span class="underline italic bold">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</span>
Aquí hay diferente tipos de span, lo que quiero hacer es reemplazar las etiquetas span por etiquetas xml, por ejemplo:
<span class="bold italic">prueba</span> por esto:
<b><i>prueba</i></b>
Alguien tiene alguna idea de como se hace?...