Bug #12938 Updated: htmlspecialchars() which doesn't strip unicode html
| From: | wez@php.net | Date: | Fri, 24 Aug 2001 16:22:06 +0000 |
| Subject: | Bug #12938 Updated: htmlspecialchars() which doesn't strip unicode html | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-64254@lists.php.net to get a copy of this message | ||
ID: 12938
Updated by: wez
Reported By: glutnix@addict.net.nz
Old Status: Open
Status: Bogus
Bug Type: Feature/Change Request
Operating System: linux
PHP Version: 4.0.6
New Comment:
Not a bug; & is encoded as &
Take a look at the mbstring extension and the functions there; they are documented in the
"multi-byte string functions" section of the manual.
In partciular, mb_decode_numericentity will be of interest to you.
--Wez.
Previous Comments:
------------------------------------------------------------------------
[2001-08-24 00:43:51] glutnix@addict.net.nz
htmlspecialchars() turns this japanese text submitted from a form:
クӤ:
日本語の表示テスト
into:
ク&#1252:
日本語の表示テスト
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12938&edit=1