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

25 lines
336 B
PHP

--TEST--
Bug #22008 (strip_tags() eliminates too much), binary variant
--FILE--
<?php
$html = (binary) <<< HERE
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>test</title>
</head>
<body>
<b>PHP!</b>
</body>
</html>
HERE;
echo trim(strip_tags($html, '<b>'))."\n";
?>
--EXPECT--
test
<b>PHP!</b>