|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #5975 version of strip_tags() that specifies tags to strip (instead of tags to keep)
Submitted: 2000-08-04 20:51 UTC Modified: 2012-02-10 23:13 UTC
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: muhlig at us dot edu dot pl Assigned:
Status: Duplicate Package: Strings related
PHP Version: * OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
22 - 19 = ?
Subscribe to this entry?

 [2000-08-04 20:51 UTC] muhlig at us dot edu dot pl
Because I'd like to strip much less tags than I'd like to remain in the HTML file (and I suppose there are more people who would like such a feature) I'd suggest to accompany strip_tags with its counterpart:

string strip_tags (string str [, string allowable_tags])

in the following way (more or less):

string strip_some_tags (string str [, string not_allowable_tags])

or enhance strip_tags in order to allow only these tags which are not
allowed to exist in the resulting string.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-19 00:06 UTC]
-Package: Feature/Change Request +Package: Strings related -Operating System: Solaris 2.6 +Operating System: * -PHP Version: 4.0 +PHP Version: *
 [2011-02-26 20:40 UTC] jthijssen at noxlogic dot nl
This bug is a duplicate of #23723. A patch for this feature is added to that bug.
 [2012-02-10 23:13 UTC]
-Status: Open +Status: Duplicate
 [2012-02-10 23:13 UTC]
See bug #23723
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Oct 03 00:03:42 2022 UTC