Annotation of embedaddon/php/ext/standard/tests/strings/htmlentities.phpt, revision 1.1.1.2

1.1       misho       1: --TEST--
1.1.1.2 ! misho       2: HTML entities of ISO-8859 chars
1.1       misho       3: --INI--
                      4: output_handler=
                      5: --FILE--
                      6: <?php 
                      7: setlocale (LC_CTYPE, "C");
1.1.1.2 ! misho       8: $sc_encoded = htmlspecialchars ("<>\"&εΔ\n",ENT_COMPAT,"ISO-8859-1");
1.1       misho       9: echo $sc_encoded;
1.1.1.2 ! misho      10: $ent_encoded = htmlentities ("<>\"&εΔ\n",ENT_COMPAT,"ISO-8859-1");
1.1       misho      11: echo $ent_encoded;
1.1.1.2 ! misho      12: echo html_entity_decode($sc_encoded,ENT_COMPAT,"ISO-8859-1");
        !            13: echo html_entity_decode($ent_encoded,ENT_COMPAT,"ISO-8859-1");
1.1       misho      14: ?>
                     15: --EXPECT--
                     16: &lt;&gt;&quot;&amp;εΔ
                     17: &lt;&gt;&quot;&amp;&aring;&Auml;
                     18: <>"&εΔ
                     19: <>"&εΔ

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