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

1.1       misho       1: --TEST--
                      2: html_entity_decode: Handling of '
                      3: --FILE--
                      4: <?php
                      5: 
                      6: echo "*** HTML 4.01 implicit (shouldn't decode) ***\n";
                      7: echo html_entity_decode("&apos;", ENT_QUOTES, "UTF-8"), "\n";
                      8: 
                      9: echo "*** HTML 4.01 (shouldn't decode) ***\n";
                     10: echo html_entity_decode("&apos;", ENT_QUOTES | ENT_HTML401, "UTF-8"), "\n";
                     11: 
                     12: echo "*** HTML 5 ***\n";
                     13: echo html_entity_decode("&apos;", ENT_QUOTES | ENT_HTML5, "UTF-8"), "\n";
                     14: 
                     15: echo "*** XHTML 1.0 ***\n";
                     16: echo html_entity_decode("&apos;", ENT_QUOTES | ENT_XHTML, "UTF-8"), "\n";
                     17: 
                     18: echo "*** XML 1.0 ***\n";
                     19: echo html_entity_decode("&apos;", ENT_QUOTES | ENT_XML1, "UTF-8"), "\n";
                     20: 
                     21: echo "Done.\n";
                     22: --EXPECT--
                     23: *** HTML 4.01 implicit (shouldn't decode) ***
                     24: &apos;
                     25: *** HTML 4.01 (shouldn't decode) ***
                     26: &apos;
                     27: *** HTML 5 ***
                     28: '
                     29: *** XHTML 1.0 ***
                     30: '
                     31: *** XML 1.0 ***
                     32: '
                     33: Done.

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