From: [EMAIL PROTECTED]
Operating system:
PHP version: 4.3.0RC2
PHP Bug Type: Feature/Change Request
Bug description: strip_tags() option to change brackets
#15972, which is open right now, had some good thoughts on how to expand
strip_tags...
My suggestion:
1. Add a third/fourth parameter to it that (if specified) says what to
change the brackets *to* instead of replacing them.
e.g.:
strip_tags("<b>hi</b><i>there</i>", "<b>", "<", ">");
would have an output of:
<b>hi</b> <there>
The point of this is so that rather than strip away tags that are invalid,
a forum would be able to see code just fine.. Well, that, and we'd be
able to have brackets on the site without typing in the html equivalent ;)
--
Edit bug report at http://bugs.php.net/?id=20881&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20881&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20881&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20881&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20881&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20881&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20881&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20881&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20881&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20881&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20881&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20881&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20881&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20881&r=isapi