note 24991 added to function.nl2br

From: Date: Fri, 06 Sep 2002 22:07:06 +0000
Subject: note 24991 added to function.nl2br
Groups: php.notes 
Request: Send a blank email to php-notes+get-36272@lists.php.net to get a copy of this message
Regarding lack of br2nl()... try this when re-displaying a string that has been altered by nl2br(): echo "<textarea name=body wrap=virtual cols=48 rows=12>"; $body = strip_tags($body); $body = stripslashes($body); echo $body; echo "</textarea>\n"; Seemed to work for me... -- http://www.php.net/manual/en/function.nl2br.php http://master.php.net/manage/user-notes.php?action=edit+24991 http://master.php.net/manage/user-notes.php?action=delete+24991 http://master.php.net/manage/user-notes.php?action=reject+24991

« previous php.notes (#36272) next »