php-src/ext/standard/tests/strings/bug21744_binary.phpt
Arnaud Le Blanc 4c400890ed strip_tags() fixes:
- 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
2009-04-24 21:23:47 +00:00

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>