note 47585 deleted from function.nl2br by sean
| From: | sean@php.net | Date: | Mon, 22 Nov 2004 15:14:13 +0000 |
| Subject: | note 47585 deleted from function.nl2br by sean | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-80866@lists.php.net to get a copy of this message | ||
Note Submitter:
----
<br /> is invalid HTML, and should not be used in any HTML pages. Any SGML parser will rightly
interpret such a tag as <br>/>, and browsers have had to add special parsing rules just to
deal with this nonsense.
The HTML tag is <br>. Trying to halfheartedly make HTML websites forward compatible with XHTML
by inserting loose slashes in random tags is not a good policy.
Only use this function if you're working with XHTML sites.
----
Reason: useless note