Annotation of embedaddon/php/ext/standard/tests/strings/bug22008.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #22008 (strip_tags() eliminates too much)
                      3: --FILE--
                      4: <?php
                      5: $html = <<< HERE
                      6: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
                      7: <html>
                      8: <head>
                      9: <title>test</title>
                     10: </head>
                     11: <body>
                     12: <b>PHP!</b>
                     13: </body>
                     14: </html>
                     15: 
                     16: HERE;
                     17: 
                     18: echo trim(strip_tags($html, '<b>'))."\n";
                     19: ?>
                     20: --EXPECT--
                     21: test
                     22: 
                     23: 
                     24: <b>PHP!</b>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>