mirror of
https://github.com/php/php-src.git
synced 2024-12-16 05:15:03 +08:00
25 lines
311 B
PHP
25 lines
311 B
PHP
--TEST--
|
|
Bug #22008 (strip_tags() eliminates too much)
|
|
--FILE--
|
|
<?php
|
|
$html = <<< 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>
|