Annotation of embedaddon/php/ext/standard/tests/strings/bug23650.phpt, revision 1.1
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:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>