Return to bug23650.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / strings |
1.1 misho 1: --TEST-- 2: Bug #23650 (strip_tags() removes hyphens) 3: --FILE-- 4: <?php 5: $str = <<< HERE 6: 1:<!-- abc - --> 7: 2:<!doctype -- > 8: 3: 9: 4:<abc - def> 10: 5:abc - def 11: 6:</abc> 12: 13: HERE; 14: 15: echo strip_tags($str); 16: echo strip_tags($str, '<abc>'); 17: ?> 18: --EXPECT-- 19: 1: 20: 2: 21: 3: 22: 4: 23: 5:abc - def 24: 6: 25: 1: 26: 2: 27: 3: 28: 4:<abc - def> 29: 5:abc - def 30: 6:</abc> 31: