note 82774 deleted from function.htmlentities by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 16:50:38 +0000 |
| Subject: | note 82774 deleted from function.htmlentities by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-154896@lists.php.net to get a copy of this message | ||
Note Submitter: vicrry at yahoo dot com
----
my code has been like this ugly all the time:
echo nl2br( str_replace(' ',' ', htmlentities( $string ) ) );
it would be great if this function has the option to encode spaces to (s), because
it's also among the html special char equivalents.