note 6323 rejected and deleted from nl2br by zak

From: Date: Sat, 30 Dec 2000 00:00:54 +0000
Subject: note 6323 rejected and deleted from nl2br by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-9213@lists.php.net to get a copy of this message
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> <BR> <BR> </PRE> but, as every webmaster knows <P> tag is much better then a couple <BR>s . Any Idea how to change/replace 2 BRs with one P tag? Thanks

« previous php.notes (#9213) next »