|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21311 strip_tags strips everything after <!DOCTYPE
Submitted: 2002-12-31 07:32 UTC Modified: 2003-03-11 11:13 UTC
From: work at sopnet dot ch Assigned:
Status: Closed Package: Strings related
PHP Version: 4.3.0 OS: WinXP
Private report: No CVE-ID: None
 [2002-12-31 07:32 UTC] work at sopnet dot 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.'


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-31 09:19 UTC]
Fixed in CVS
 [2003-01-03 04:32 UTC] devilkin at gmx dot net
Was this fixed in the 4.4 or in 4.3?
 [2003-01-03 04:33 UTC]
Trick questions:
When was PHP 4.3.0 released?
When did you report this bug?
 [2003-01-03 06:12 UTC] work at sopnet dot ch
Oh, funny new year questions...

>When was PHP 4.3.0 released?
>When did you report this bug?


Download of latest Stable (4.3.x-dev) does not help.
In which version from, 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 06:22 UTC]
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.
 [2003-03-11 10:58 UTC] laurent dot bonnin at lemel dot fr
Same problem width PHP 4.3.1
 [2003-03-11 11:13 UTC]
For everyone: The fix will be in next _normal_ release
of PHP. Be it 4.3.2 or 4.3.3. We can't be sure ever
that there aren't any 'emergency' releases in between.

Try reading the NEWS file every once and a while..

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Mar 03 20:01:29 2024 UTC