Return to bug53319.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / strings |
1.1 misho 1: --TEST-- 2: Bug #53319 (Strip_tags() may strip '<br />' incorrectly) 3: --FILE-- 4: <?php 5: 6: $str = '<br /><br />USD<input type="text"/><br/>CDN<br><input type="text" />'; 7: var_dump(strip_tags($str, '<input>')); 8: var_dump(strip_tags($str, '<br><input>') === $str); 9: var_dump(strip_tags($str)); 10: var_dump(strip_tags('<a/b>', '<a>')); 11: 12: ?> 13: --EXPECTF-- 14: string(47) "USD<input type="text"/>CDN<input type="text" />" 15: bool(true) 16: string(6) "USDCDN" 17: string(0) ""