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

31 lines
329 B
PHP

--TEST--
Bug #23650 (strip_tags() removes hyphens), binary variant
--FILE--
<?php
$str = (binary) <<< HERE
1:<!-- abc - -->
2:<!doctype -- >
3:
4:<abc - def>
5:abc - def
6:</abc>
HERE;
echo strip_tags($str);
echo strip_tags($str, b'<abc>');
?>
--EXPECT--
1:
2:
3:
4:
5:abc - def
6:
1:
2:
3:
4:<abc - def>
5:abc - def
6:</abc>