#20881 [NEW]: strip_tags() option to change brackets

From: Date: Sat, 07 Dec 2002 19:37:08 +0000
Subject: #20881 [NEW]: strip_tags() option to change brackets
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-26995@lists.php.net to get a copy of this message
From: mark@seventhcycle.net 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>", "&lt", "&gt"); would have an output of: <b>hi</b> &lt;there&gt; 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

« previous php.bugs (#26995) next »