note 6324 rejected and deleted from nl2br by zak
| From: | zak@php.net | 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 <> 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>
<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