note 25239 added to function.htmlentities
| From: | marshall at exclupen dot com | Date: | Mon, 16 Sep 2002 04:06:19 +0000 |
| Subject: | note 25239 added to function.htmlentities | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-36719@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 (" ", " ", $content);
// get rid of double spaces again to compensate for odd numbers of spaces
$content = ereg_replace (" ", " ", $content);
it will indent text without breaking <br /> and without keeping text from wrapping.
--
http://www.php.net/manual/en/function.htmlentities.php
http://master.php.net/manage/user-notes.php?action=edit+25239
http://master.php.net/manage/user-notes.php?action=delete+25239
http://master.php.net/manage/user-notes.php?action=reject+25239