note 28776 modified in function.nl2br by didou

From: Date: Fri, 01 Aug 2003 15:23:40 +0000
Subject: note 28776 modified in function.nl2br by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-53148@lists.php.net to get a copy of this message
[Editor's Note] Please use <br /> instead of <br> for XHTML 1.0 compliancy [/Note] What eightraks said were perfect!! My example is: nl2br: $textfield = ereg_replace("(\r\n|\n|\r)", "<br>", $textfield); br2nl: $textfield = ereg_replace("<br>", "\r\n", $textfield); testing<br>testing --was-- [Editor's Note] Please use <br /> instead of <br> for XHTML 1.0 compliancy [/Note] What eightraks said were perfect!! My example is: nl2br: $textfield = ereg_replace("(\r\n|\n|\r)", "<br>", $textfield); br2nl: $textfield = ereg_replace("<br>", "\r\n", $textfield); http://www.php.net/manual/en/function.nl2br.php

« previous php.notes (#53148) next »