Req #5975 [Opn->Dup]: version of strip_tags() that specifies tags to strip (instead of tags to keep)
| From: | johannes@php.net | Date: | Fri, 10 Feb 2012 23:13:36 +0000 |
| Subject: | Req #5975 [Opn->Dup]: version of strip_tags() that specifies tags to strip (instead of tags to keep) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-167411@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=5975&edit=1
ID: 5975
Updated by: johannes@php.net
Reported by: muhlig at us dot edu dot pl
Summary: version of strip_tags() that specifies tags to strip
(instead of tags to keep)
-Status: Open
+Status: Duplicate
Type: Feature/Change Request
Package: Strings related
Operating System: *
PHP Version: *
Block user comment: N
Private report: N
New Comment:
See bug #23723
Previous Comments:
------------------------------------------------------------------------
[2011-02-26 20:40:33] jthijssen at noxlogic dot nl
This bug is a duplicate of #23723. A patch for this feature is added to that bug.
------------------------------------------------------------------------
[2000-08-04 20:51:01] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=5975&edit=1