summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/bug22008.phpt
blob: 0965337e64e743ecbd181e7df28cb683608da6dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--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>