PHP :: Bug #21453 :: strip_tags behaviour change
| Bug #21453 | strip_tags behaviour change | ||||
|---|---|---|---|---|---|
| Submitted: | 2003-01-06 01:14 UTC | Modified: | 2003-01-06 16:16 UTC | ||
| From: | pw0kt32001 at sneakemail dot com | Assigned: | |||
| Status: | Closed | Package: | Strings related | ||
| PHP Version: | 4.3.0 | OS: | Windows XP | ||
| Private report: | No | CVE-ID: | None | ||
[2003-01-06 01:14 UTC] pw0kt32001 at sneakemail dot com
A "<" as plaintext is something strip_tags can't make much sense of, sure. My previous report ( http://bugs.php.net/bug.php?id=21253 ) was indeed bogus, but what about this. <?php print("<pre>"); $test = "<table>\n<tr><td>first cell before < first cell after</td></tr>\n<tr><td>second cell before < second cell after</td></tr>\n</table>\n"; $testarray = explode("\n",strip_tags($test)); print_r($testarray); print("</pre>"); /* 4.2.3 ===== Array ( [0] => [1] => first cell before [2] => second cell before [3] => [4] => ) 4.3.0 ===== Array ( [0] => [1] => first cell before ) */ ?> Is this also per design? Parsing third-party webpages created by someone/some program that disregards that < should be used instead of "<" became a bit more difficult with 4.3.0. Not hard to code around, but certainly an annoyance compared to 4.2.3.
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2003-01-06 16:17 UTC] iliaa@php.net