mirror of
https://github.com/php/php-src.git
synced 2024-12-15 21:05:51 +08:00
a1e6457561
Added test case for the bug
16 lines
278 B
PHP
16 lines
278 B
PHP
--TEST--
|
|
Bug #21744 (strip_tags misses exclamation marks in alt text)
|
|
--FILE--
|
|
<?php
|
|
$test = <<< HERE
|
|
<a href="test?test\\!!!test">test</a>
|
|
<!-- test -->
|
|
HERE;
|
|
|
|
print strip_tags($test, '');
|
|
print strip_tags($test, '<a>');
|
|
?>
|
|
--EXPECT--
|
|
test
|
|
<a href="test?test\!!!test">test</a>
|