2000-08-27 19:46:06 +00:00
|
|
|
|
--TEST--
|
|
|
|
|
HTML entities
|
2002-11-03 08:37:59 +00:00
|
|
|
|
--INI--
|
|
|
|
|
output_handler=
|
2000-08-27 19:46:06 +00:00
|
|
|
|
--FILE--
|
|
|
|
|
<?php
|
2001-02-22 18:35:22 +00:00
|
|
|
|
setlocale (LC_CTYPE, "C");
|
2002-03-15 21:03:08 +00:00
|
|
|
|
$sc_encoded = htmlspecialchars ("<>\"&<26><>\n");
|
|
|
|
|
echo $sc_encoded;
|
|
|
|
|
$ent_encoded = htmlentities ("<>\"&<26><>\n");
|
|
|
|
|
echo $ent_encoded;
|
|
|
|
|
echo html_entity_decode($sc_encoded);
|
|
|
|
|
echo html_entity_decode($ent_encoded);
|
2000-08-27 19:46:06 +00:00
|
|
|
|
?>
|
|
|
|
|
--EXPECT--
|
|
|
|
|
<>"&<3B><>
|
|
|
|
|
<>"&åÄ
|
2002-03-15 21:03:08 +00:00
|
|
|
|
<>"&<26><>
|
|
|
|
|
<>"&<26><>
|