ID:               45485
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jlim at natsoft dot com
-Status:           Assigned
+Status:           Closed
 Bug Type:         Strings related
 Operating System: Windows
 PHP Version:      5.2.6
 Assigned To:      felipe
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2008-07-11 11:12:30] jlim at natsoft dot com

Description:
------------
This is related to bug #12860. The HTML tags are not stripped properly
because of <?XML.

Bugfix #12860 fixes the problem of strip_tags parsing <?xml but not
<?XML

I don't have control over the HTML I am stripping because it is from
MS-Outlook generated HTML (ugh).

Regards, John Lim

Reproduce code:
---------------
<?php

# DOES NOT WORK
$s =<<< EOD
This text is shown <?XML:NAMESPACE PREFIX = ST1 /><b>This Text
disappears</b>
EOD;

$s = strip_tags($s);
echo htmlspecialchars($s),"<hr>";


# WORKS

$s =<<< EOD
This text is shown <?xml:NAMESPACE PREFIX = ST1 /><b>This Text
disappears</b>
EOD;

$s = strip_tags($s);
echo htmlspecialchars($s),"<br>";
?>

Expected result:
----------------
This text is shown This Text disappears
------
This text is shown This Text disappears

Actual result:
--------------
This text is shown 
------
This text is shown This Text disappears


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45485&edit=1

Reply via email to