Supprimer les <BR> au bon endroit ?

Répondre


Cette question est un moyen d’empêcher des soumissions automatisées de formulaires par des robots.
Smileys
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: =D> #-o =P~ :^o :non: :priere: 8-|
Voir plus de smileys
  Revue du sujet
 

  Étendre la vue Revue du sujet : Supprimer les <BR> au bon endroit ?

Supprimer les <BR> au bon endroit ?

par zaknaou » 11 nov. 2008, 21:42

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é...