note 27437 added to function.nl2br

From: Date: Thu, 05 Dec 2002 21:28:26 +0000
Subject: note 27437 added to function.nl2br
Groups: php.notes 
Request: Send a blank email to php-notes+get-40393@lists.php.net to get a copy of this message
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, -- http://www.php.net/manual/en/function.nl2br.php http://master.php.net/manage/user-notes.php?action=edit+27437 http://master.php.net/manage/user-notes.php?action=delete+27437 http://master.php.net/manage/user-notes.php?action=reject+27437

« previous php.notes (#40393) next »