blob: 97e3aaa38fc4801886017efbe4fa5c2d2a244a9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--TEST--
HTML entities
--POST--
--GET--
--FILE--
<?php
setlocale (LC_CTYPE, "C");
$sc_encoded = htmlspecialchars ("<>\"&εΔ\n");
echo $sc_encoded;
$ent_encoded = htmlentities ("<>\"&εΔ\n");
echo $ent_encoded;
echo html_entity_decode($sc_encoded);
echo html_entity_decode($ent_encoded);
?>
--EXPECT--
<>"&εΔ
<>"&åÄ
<>"&εΔ
<>"&εΔ
|