php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #12938 htmlspecialchars() which doesn't strip unicode html
Submitted: 2001-08-24 00:43 UTC Modified: 2001-08-24 12:22 UTC
From: glutnix at addict dot net dot nz Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.0.6 OS: linux
Private report: No CVE-ID: None
 [2001-08-24 00:43 UTC] glutnix at addict dot net dot nz
htmlspecialchars() turns this japanese text submitted from a form:
ク&#1252: 日本語の表示テスト

into:

ク&#1252: 日本語の表示テスト

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-24 12:22 UTC] wez@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 15:01:30 2024 UTC