#21311 [Csd]: strip_tags strips everything after <!DOCTYPE

From: Date: Fri, 03 Jan 2003 12:22:21 +0000
Subject: #21311 [Csd]: strip_tags strips everything after <!DOCTYPE
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-28968@lists.php.net to get a copy of this message
ID: 21311 Updated by: derick@php.net Reported By: work@sopnet.ch Status: Closed Bug Type: Strings related Operating System: WinXP PHP Version: 4.3.0 New Comment: All fixes go to the development snapshot unless the commiter thinks his fix should go to the stable branch too, so it's only in 4.4.0-dev right now. Because I think it should also be in the branch (4.3.1-dev) I'm going to merge this fix; it should be in both the stable and dev snapshot when they are regenerated. Previous Comments: ------------------------------------------------------------------------ [2003-01-03 06:12:28] work@sopnet.ch Oh, funny new year questions... >When was PHP 4.3.0 released? 27-Dec-2002 >When did you report this bug? 31-Dec-2002 ----- Download of latest Stable (4.3.x-dev) does not help. In which version from http://snaps.php.net, Stable (4.3.x-dev) or Latest CVS (4.4.x-dev), is it fixed? Please can somebody answer clearly? Thanks, Claudio ------------------------------------------------------------------------ [2003-01-03 04:33:42] derick@php.net Trick questions: When was PHP 4.3.0 released? When did you report this bug? ------------------------------------------------------------------------ [2003-01-03 04:32:48] devilkin@gmx.net Was this fixed in the 4.4 or in 4.3? ------------------------------------------------------------------------ [2002-12-31 09:19:16] rasmus@php.net Fixed in CVS ------------------------------------------------------------------------ [2002-12-31 07:32:40] work@sopnet.ch $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 this bug report at http://bugs.php.net/?id=21311&edit=1

« previous php.bugs (#28968) next »