#21311 [NEW]: strip_tags strips everything after <!DOCTYPE
| From: | work at sopnet dot ch | Date: | Tue, 31 Dec 2002 13:32:40 +0000 |
| Subject: | #21311 [NEW]: strip_tags strips everything after <!DOCTYPE | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-28844@lists.php.net to get a copy of this message | ||
From: work@sopnet.ch
Operating system: WinXP
PHP version: 4.3.0
PHP Bug Type: Strings related
Bug description: strip_tags strips everything after <!DOCTYPE
$str1 = "Hello <!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0
Transitional//EN\"> World.";
$str1 = strip_tags($str1);
After this $str1 contains only 'Hello' and not 'Hello World.'
--
Edit bug report at http://bugs.php.net/?id=21311&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21311&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21311&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21311&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21311&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21311&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21311&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21311&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21311&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21311&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21311&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21311&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21311&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21311&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=21311&r=gnused