note 19201 deleted from function.nl2br by aidan

From: Date: Sun, 10 Oct 2004 10:39:18 +0000
Subject: note 19201 deleted from function.nl2br by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-78283@lists.php.net to get a copy of this message
Note Submitter: birkholz at web dot de ---- What nl2br() does is NOT to convert newlines to BR, it adds a BR before any newline(newline/return or return, depending on OS). So if you convert a string returned from nl2br() with a unnl2br()-function, just strip the BR's instead of replacing them.

« previous php.notes (#78283) next »