php-src/ext/standard/tests/strings/bug45485_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

24 lines
493 B
PHP

--TEST--
Bug #45485 (strip_tags and <?XML tag), binary variant
--FILE--
<?php
$s = (binary) <<< EOD
This text is shown <?XML:NAMESPACE PREFIX = ST1 /><b>This Text disappears</b>
EOD;
$s = strip_tags($s);
echo htmlspecialchars($s),"\n";
$s = (binary) <<< EOD
This text is shown <?xml:NAMESPACE PREFIX = ST1 /><b>This Text disappears</b>
EOD;
$s = strip_tags($s);
echo htmlspecialchars($s),"\n";
?>
--EXPECT--
This text is shown This Text disappears
This text is shown This Text disappears