php-src/ext/standard/tests/strings/bug40637_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

14 lines
242 B
PHP

--TEST--
Bug #40637 (strip_tags() does not handle single quotes correctly), binary variant
--FILE--
<?php
$html = b'<span title="Bug \' Trigger">Text</span>';
var_dump(strip_tags($html));
echo "Done\n";
?>
--EXPECT--
unicode(4) "Text"
Done