|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23650 strip_tags removes hyphens
Submitted: 2003-05-15 23:21 UTC Modified: 2003-05-16 03:09 UTC
From: pw0kt32001 at sneakemail dot com Assigned: moriyoshi (profile)
Status: Closed Package: Strings related
PHP Version: 4.3.2RC4-dev OS: Windows XP Pro
Private report: No CVE-ID: None
 [2003-05-15 23:21 UTC] pw0kt32001 at sneakemail dot com
print strip_tags("<b>a-z</b>") returns "az".
Intended change or bug? 4.3.1 returns "a-z".


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-16 00:11 UTC]
This is a BC break and should be fixed before we release 
final, IMO. 
 [2003-05-16 03:09 UTC]
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.

Works fine now. 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Jan 26 14:01:24 2020 UTC