Lines Matching refs:htmlspecialchars
2 Test htmlspecialchars() function : basic functionality
5 echo "*** Testing htmlspecialchars() : basic functionality ***\n";
13 echo "Test 1: " . htmlspecialchars ($s1);
14 echo "Test 2: " . htmlspecialchars ($s2);
15 echo "Test 3: " . htmlspecialchars ($s3);
16 echo "Test 4: " . htmlspecialchars ($s4);
17 echo "Test 5: " . htmlspecialchars ($s5);
18 echo "Test 6: " . htmlspecialchars ($s1,ENT_NOQUOTES);
19 echo "Test 7: " . htmlspecialchars ($s2,ENT_NOQUOTES);
20 echo "Test 8: " . htmlspecialchars ($s3,ENT_NOQUOTES);
21 echo "Test 9: " . htmlspecialchars ($s4,ENT_NOQUOTES);
22 echo "Test 10: " . htmlspecialchars ($s5,ENT_NOQUOTES);
23 echo "Test 11: " . htmlspecialchars ($s1,ENT_COMPAT);
24 echo "Test 12: " . htmlspecialchars ($s2,ENT_COMPAT);
25 echo "Test 13: " . htmlspecialchars ($s3,ENT_COMPAT);
26 echo "Test 14: " . htmlspecialchars ($s4,ENT_COMPAT);
27 echo "Test 15: " . htmlspecialchars ($s5,ENT_COMPAT);
28 echo "Test 16: " . htmlspecialchars ($s1,ENT_QUOTES);
29 echo "Test 17: " . htmlspecialchars ($s2,ENT_QUOTES);
30 echo "Test 18: " . htmlspecialchars ($s3,ENT_QUOTES);
31 echo "Test 19: " . htmlspecialchars ($s4,ENT_QUOTES);
32 echo "Test 20: " . htmlspecialchars ($s5,ENT_QUOTES);
35 echo "Test 21: " . htmlspecialchars ($s1,ENT_NOQUOTES, "ISO-8859-1");
36 echo "Test 22: " . htmlspecialchars ($s2,ENT_COMPAT, "ISO-8859-1");
37 echo "Test 23: " . htmlspecialchars ($s3,ENT_QUOTES, "ISO-8859-1");
38 echo "Test 24: " . htmlspecialchars ($s5,ENT_QUOTES, "ISO-8859-1");
44 echo "Test 25: " . htmlspecialchars ($s1,ENT_NOQUOTES, "ISO-8859-1", false);
45 echo "Test 26: " . htmlspecialchars ($s2,ENT_NOQUOTES, "ISO-8859-1", false);
46 echo "Test 27: " . htmlspecialchars ($s3,ENT_NOQUOTES, "ISO-8859-1", false);
49 echo "Test 28: " . htmlspecialchars ($s1, ENT_NOQUOTES, "ISO-8859-1", true);
50 echo "Test 29: " . htmlspecialchars ($s2, ENT_NOQUOTES, "ISO-8859-1", true);
54 *** Testing htmlspecialchars() : basic functionality ***