note 82774 added to function.htmlentities
| From: | vicrry at yahoo dot com | Date: | Fri, 25 Apr 2008 04:33:48 +0000 |
| Subject: | note 82774 added to function.htmlentities | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-138762@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 203.169.164.81
Probable Submitter: 218.188.201.184
----
Manual Page -- http://www.php.net/manual/en/function.htmlentities.php
Edit -- https://master.php.net/note/edit/82774
Del: integrated -- https://master.php.net/note/delete/82774/integrated
Del: useless -- https://master.php.net/note/delete/82774/useless
Del: bad code -- https://master.php.net/note/delete/82774/bad+code
Del: spam -- https://master.php.net/note/delete/82774/spam
Del: non-english -- https://master.php.net/note/delete/82774/non-english
Del: in docs -- https://master.php.net/note/delete/82774/in+docs
Del: other reasons-- https://master.php.net/note/delete/82774
Reject -- https://master.php.net/note/reject/82774
Search -- https://master.php.net/manage/user-notes.php