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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: glutnix at addict dot net dot nz
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 10:01:29 2025 UTC