1 2 3 4 5 6 7 8 9 10 11 12 13
--TEST-- Bug #40637 (strip_tags() does not handle single quotes correctly) --FILE-- <?php $html = '<span title="Bug \' Trigger">Text</span>'; var_dump(strip_tags($html)); echo "Done\n"; ?> --EXPECTF-- string(4) "Text" Done