note 25239 deleted from function.htmlentities by spic

From: Date: Thu, 19 Sep 2002 21:33:21 +0000
Subject: note 25239 deleted from function.htmlentities by spic
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-36988@lists.php.net to get a copy of this message
in reply to wildleaf@wildleaf.net above... if you use: // get rid of double spaces... useful for displaying blocks of indented code $content = ereg_replace (" ", "&nbsp; ", $content); // get rid of double spaces again to compensate for odd numbers of spaces $content = ereg_replace (" ", " &nbsp;", $content); it will indent text without breaking <br /> and without keeping text from wrapping.

« previous php.notes (#36988) next »