Page 1 sur 1

Supprimer les <BR> au bon endroit ?

Posté : 11 nov. 2008, 21:42
par zaknaou
Bonjour,

savez-vous comment je peut faire pour passer de :

Code : Tout sélectionner

<span style="font-weight: bold; size: 24px;"> < </span> br <span style="font-weight: bold; size: 24px;"> /> < </span> ?php <span style="font-weight: bold; size: 24px;"> < </span> br <span style="font-weight: bold; size: 24px;"> /> </span> &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"> <span style="color: rgb(0, 51, 153); background-color: rgb(234, 244, 254);"> echo </span> </a> <span style="color: rgb(204, 0, 0);"> '<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<html><br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<a><br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<font>Haaaa</font><br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;</a><br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;</br><br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<a><br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<font>AaaahRRrr</font><br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;</a><br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<a><br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<font>Bouuh</font><br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;</a><br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;</html><br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;' </span> <span style="font-weight: bold; size: 24px;"> ;< </span> br <span style="font-weight: bold; size: 24px;"> /> </span> ? <span style="font-weight: bold; size: 24px;"> > < </span> br <span style="font-weight: bold; size: 24px;"> /> </span>
à

<?php
echo'
<html>
<a>
<font>Haaaa</font>
</a>

</br>

<a>
<font>AaaahRRrr</font>
</a>

</br>

<a>
<font>Bouuh</font>
</a>

</html>
';
?>
je l'est mis exprès en citation car c'est le code qui doit s'afficher pour le visiteur, en gardant la coloration du code ici dans les span...

le problème c'est que j'utilise tiny_mce donc j'ai des </br> en plus ^^

certaine fois on fait un retour à la ligne d'autre on affiche </br>

Merci, tout solution accepté...