summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/bug23650.phpt
blob: 01dc88843d8884a06ecee6d83381edf1e5a22bf5 (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
25
26
27
28
29
30
31
--TEST--
Bug #23650 (strip_tags() removes hyphens)
--FILE--
<?php
$str = <<< HERE
1:<!-- abc -  -->
2:<!doctype -- >
3:
4:<abc - def>
5:abc - def
6:</abc>

HERE;

echo strip_tags($str);
echo strip_tags($str, '<abc>');
?>
--EXPECT--
1:
2:
3:
4:
5:abc - def
6:
1:
2:
3:
4:<abc - def>
5:abc - def
6:</abc>