note 28842 deleted from function.nl2br by didou
| From: | didou@php.net | Date: | Fri, 01 Aug 2003 15:22:44 +0000 |
| Subject: | note 28842 deleted from function.nl2br by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-53147@lists.php.net to get a copy of this message | ||
Note Submitter: X-Istence.com
----
IN html 4.01 <br /> is not valid HTML code, if you require HTML 4.01 valid code use the
following:
function nl2html401br ($data) {
$data = str_replace("\n","\n<br>",$data);
return $data;
}