Req #5975 [Com]: version of strip_tags() that specifies tags to strip (instead of tags to keep)

From: Date: Sat, 26 Feb 2011 19:40:40 +0000
Subject: Req #5975 [Com]: 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-159069@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=5975&edit=1 ID: 5975 Comment by: jthijssen at noxlogic dot nl 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 Type: Feature/Change Request Package: Strings related Operating System: * PHP Version: * Block user comment: N Private report: N New Comment: This bug is a duplicate of #23723. A patch for this feature is added to that bug. Previous Comments: ------------------------------------------------------------------------ [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 http://bugs.php.net/bug.php?id=5975&edit=1

« previous php.bugs (#159069) next »