php-src/ext/standard/tests/strings/bug21453_binary.phpt
Arnaud Le Blanc 4c400890ed strip_tags() fixes:
- MFH5.3 (Fix bug when < is used within attribute.)
- Fix handling of case when searching for allowed tags in unicode variant
- tests for both unicode and binary variants
2009-04-24 21:23:47 +00:00

19 lines
362 B
PHP

--TEST--
Bug #21453 (handling of non-encoded <), binary variant
--FILE--
<?php
$test = b"
<table>
<tr><td>first cell before < first cell after</td></tr>
<tr><td>second cell before < second cell after</td></tr>
</table>";
var_dump(strip_tags($test));
?>
--EXPECT--
string(80) "
first cell before < first cell after
second cell before < second cell after
"