note 10333 deleted from nl2br by zak

From: Date: Sat, 30 Dec 2000 00:05:16 +0000
Subject: note 10333 deleted from nl2br by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-9219@lists.php.net to get a copy of this message
WHY IN THE HELL DO PEOPLE PUT <PRE> with the php code Like Idiots <pre> $text = nl2br(text); $text = ereg_replace("n", "", $text); $text = ereg_replace("r", "", $text); </pre> THAT IS WRONG!!!!!!!!!!!!!!!! It should be <pre> &lt;? $text = nl2br(text); $text = ereg_replace("n", "", $text); $text = ereg_replace("r", "", $text); ?> </pre> OR print("<pre>"); $text = nl2br(text); $text = ereg_replace("n", "", $text); $text = ereg_replace("r", "", $text); print ("</pre>");

« previous php.notes (#9219) next »