mirror of
https://github.com/php/php-src.git
synced 2024-10-16 14:02:37 +00:00
4c400890ed
- MFH5.3 (Fix bug when < is used within attribute.) - Fix handling of case when searching for allowed tags in unicode variant - tests for both unicode and binary variants
16 lines
303 B
PHP
16 lines
303 B
PHP
--TEST--
|
|
Bug #21744 (strip_tags misses exclamation marks in alt text), binary variant
|
|
--FILE--
|
|
<?php
|
|
$test = (binary) <<< 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>
|