note 94884 added to function.nl2br
| From: | SebastianJu at osu1 dot php dot net | Date: | Mon, 30 Nov 2009 21:49:01 +0000 |
| Subject: | note 94884 added to function.nl2br | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-163436@lists.php.net to get a copy of this message | ||
Another br2nl-Function. This works with text for textareas too... Other solutions here would result
in \n in the textbox and no wrap.
function br2nl($string){
$return=eregi_replace('<br[[:space:]]*/?'.
'[[:space:]]*>',chr(13).chr(10),$string);
return $return;
}
GrüÃe!
Sebastian
----
Server IP: 217.160.72.57
Probable Submitter: 77.21.203.38
----
Manual Page -- http://www.php.net/manual/en/function.nl2br.php
Edit -- https://master.php.net/note/edit/94884
Del: integrated -- https://master.php.net/note/delete/94884/integrated
Del: useless -- https://master.php.net/note/delete/94884/useless
Del: bad code -- https://master.php.net/note/delete/94884/bad+code
Del: spam -- https://master.php.net/note/delete/94884/spam
Del: non-english -- https://master.php.net/note/delete/94884/non-english
Del: in docs -- https://master.php.net/note/delete/94884/in+docs
Del: other reasons-- https://master.php.net/note/delete/94884
Reject -- https://master.php.net/note/reject/94884
Search -- https://master.php.net/manage/user-notes.php