note 27437 rejected from function.nl2br by didou
| From: | didou@php.net | Date: | Sun, 05 Oct 2003 16:34:33 +0000 |
| Subject: | note 27437 rejected from function.nl2br by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-57844@lists.php.net to get a copy of this message | ||
Note Submitter: admin[at]kingtechsolutions.net
----
I am using nl2br() to display a text dump from a DB. Works great cause when you enter the text you
dont have to manually enter breaks.
printf ('%s', nl2br($myrow[1]));
However .. if you paste a Table in the mix .. it will not render correctly .. unless you put the
table all on one long line with no breaks.. which can get pretty darn confusing with a large table.
So how can i protect the table?? I have tooled around with eregi_replace () .. but I am pretty inept
at using it,