note 60956 deleted from function.htmlentities by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 17:00:21 +0000 |
| Subject: | note 60956 deleted from function.htmlentities by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-154924@lists.php.net to get a copy of this message | ||
Note Submitter: mailing at jcn50 dot com
----
Convert any language (Japanese, French, Chinese, Russian, etc...) to unicode HTML entities like
&#XXXX;
In one line!
$new=mb_convert_encoding($s,"HTML-ENTITIES","auto");
where $s is your string (may be a FORM submitted one).
Enjoy~