note 6324 rejected and deleted from nl2br by zak

From: Date: Sat, 30 Dec 2000 00:00:59 +0000
Subject: note 6324 rejected and deleted from nl2br by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-9214@lists.php.net to get a copy of this message
Sorry, above I was using &lt;&gt; which didn't show up.... <p> what I was saing was: <p> I need to get submitted text into MySQL DB and then on requerst pull it out in HTML format, submission field has breaks, I mean if in text area you hit return it makes a line for you. nl2br will replace all those lines with <PRE> &lt;BR&gt; &lt;BR&gt; </PRE> but, as every webmaster knows &lt;P&gt; tag is much better then a couple &lt;BR&gt;s . Any Idea how to change/replace 2 BRs with one P tag? Thanks

« previous php.notes (#9214) next »