Re: texto con formato HTML

From: Date: Thu, 01 Apr 2004 11:44:08 +0000
Subject: Re: texto con formato HTML
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-47346@lists.php.net to get a copy of this message
utiliza la función nl2br() para presentar el texto por pantalla y verás los saltos de línea. saludos! Xavier ----- Original Message ----- From: "Francisco Rivas Flores" <Kryogen@teleline.es> To: <php-es@lists.php.net> Sent: Thursday, April 01, 2004 13:28 Subject: [PHP-ES] texto con formato HTML > Hola Listeros > > Allá va otra cuestión. Estoy trabajando con un formulario en el que tengo > un textarea multilínea. Evidentemente, me importa el hecho de que el usuario > pueda formatear sus mensajes con saltos de línea. El problema surge cuando > introduzco ese texto en la base de datos, y al escupirlo me lo devuelve como > un largo string sin dichos saltos de línea. Existe alguna forma para que me > conserve los mismos? Se me había ocurrido pasarle un pequeño algoritmo que > metiera <BR> por cada punto, pero no es factible ya que no todos los puntos > son "punto y aparte". > > Un saludo! > > ------ > Francisco Rivas Flores > RivasFlores@terra.es > PGP key available at keyservers.pgp.com > PGP key available at europe.keys.pgp.com > ------ > PRIVATE & CONFIDENTIAL - This email message and attachments contain > information that is confidential. If you are not the intended recipient, you > are not permitted to use, copy or distribute the message and attachments in > any manner. If you have received this email in error, please inform the > sender by return email immediately and delete all copies of the message and > its attachments. This notice should not be removed. > > -- > PHP Spanish Localization Talk Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general.es (#47346) next »