note 47585 added to function.nl2br

From: Date: Mon, 22 Nov 2004 04:46:35 +0000
Subject: note 47585 added to function.nl2br
Groups: php.notes 
Request: Send a blank email to php-notes+get-80846@lists.php.net to get a copy of this message
<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. ---- Manual Page -- http://www.php.net/manual/en/function.nl2br.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+47585 Delete -- http://master.php.net/manage/user-notes.php?action=delete+47585&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47585&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47585&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47585&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47585&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47585&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+47585&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#80846) next »