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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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

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: Sun May 05 06:01:33 2024 UTC