PHP 4.0 Bug #6224 Updated: strip_tags problem

From: Date: Mon, 18 Sep 2000 01:14:58 +0000
Subject: PHP 4.0 Bug #6224 Updated: strip_tags problem
Groups: php.dev 
Request: Send a blank email to php-dev+get-33421@lists.php.net to get a copy of this message
ID: 6224 Updated by: stas Reported By: adrox@home.com Status: Closed Bug Type: Scripting Engine problem Assigned To: Comments: Cannot reproduce it. Please reopen with reproducing example if it still happens. Previous Comments: --------------------------------------------------------------------------- [2000-08-25 16:30:10] adrox@home.com To me it seemed to work with all the examples I tried that had something like this: img src="/images/file-(1).gif" it would delete the () thus leaving: img src="/images/file-1.gif" --------------------------------------------------------------------------- [2000-08-20 04:43:40] stas@php.net Could you provide an example of what was there in $html? --------------------------------------------------------------------------- [2000-08-17 16:46:20] adrox@home.com I was trying to strip all html tags from a file except for <img> tags so i used: $html = strip_tags($html,"<img>"); This worked fine except that it stripped anything that was enclosed in brackets () from the image source. I easily got around that but it's a small bug I believe. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6224

« previous php.dev (#33421) next »