mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
32 lines
304 B
Plaintext
32 lines
304 B
Plaintext
|
--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>
|
||
|
|