Home
last modified time | relevance | path

Searched refs:htmlspecialchars (Results 1 – 25 of 32) sorted by relevance

12

/PHP-8.0/ext/standard/tests/strings/
H A Dhtmlspecialchars_basic.phpt2 Test htmlspecialchars() function : basic functionality
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);
23 echo "Test 11: " . htmlspecialchars ($s1,ENT_COMPAT);
[all …]
H A Dbug44703.phpt2 Bug #44703 (htmlspecialchars() does not detect bad character set argument)
6 var_dump(htmlspecialchars("<a href='test'>Test</a>", ENT_COMPAT, 1));
7 var_dump(htmlspecialchars("<a href='test'>Test</a>", ENT_COMPAT, 12));
8 var_dump(htmlspecialchars("<a href='test'>Test</a>", ENT_COMPAT, 125));
9 var_dump(htmlspecialchars("<a href='test'>Test</a>", ENT_COMPAT, 1252));
12 var_dump(htmlspecialchars("<>", ENT_COMPAT, 866));
13 var_dump(htmlspecialchars("<>", ENT_COMPAT, 8666));
15 var_dump(htmlspecialchars("<>", ENT_COMPAT, NULL));
18 var_dump(htmlspecialchars("<>", ENT_COMPAT, 'SJIS'));
19 var_dump(htmlspecialchars("<>", ENT_COMPAT, 'SjiS'));
[all …]
H A Dhtmlspecialchars.phpt2 Test htmlspecialchars() function
5 /* retrieving htmlspecialchars from the ANSI character table */
8 var_dump( bin2hex( htmlspecialchars("chr($i)") ) );
14 var_dump( htmlspecialchars("<br>", ENT_QUOTES, NULL) );
15 var_dump( htmlspecialchars("<br>", ENT_COMPAT, NULL) );
16 var_dump( htmlspecialchars(NULL, NULL, NULL) );
29 var_dump( htmlspecialchars($str) );
30 var_dump( htmlspecialchars($str, ENT_QUOTES) );
31 var_dump( htmlspecialchars($str, ENT_NOQUOTES) );
32 var_dump( htmlspecialchars($str, ENT_COMPAT) );
[all …]
H A Dhtmlentities21.phpt2 htmlentities() / htmlspecialchars() ENT_DISALLOWED charset variation
29 $b = htmlspecialchars($test, $flag | ENT_DISALLOWED, $charset);
136 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
139 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
142 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
145 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
148 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
151 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
154 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
157 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
[all …]
H A Dhtmlentities23.phpt2 htmlentities() / htmlspecialchars() ENT_SUBSTITUTE EUC-JP
24 $a = htmlspecialchars($test, ENT_QUOTES | ENT_SUBSTITUTE, "EUC-JP");
31 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
38 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
45 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
52 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
59 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
66 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
73 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
80 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
[all …]
H A Dhtmlentities22.phpt2 htmlentities() / htmlspecialchars() ENT_DISALLOWED with entities and no double encode
41 $b = htmlspecialchars($test, $flag | $flag2, $charset, FALSE);
256 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
259 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
262 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
265 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
268 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
271 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
274 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
277 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
[all …]
H A Dbug20934.phpt2 Bug #20934 (htmlspecialchars returns latin1 from UTF-8)
7 var_dump(utf8_decode(htmlspecialchars($str, ENT_COMPAT, "UTF-8")));
H A Dbug60965.phpt2 Bug #60965: Buffer overflow on htmlspecialchars/entities with $double=false
5 echo htmlspecialchars('"""""""""""""""""""""""""""""""""""""""""""""&#x0000000000000000000000000000…
H A Dbug61116.phpt5 echo new ReflectionFunction('htmlspecialchars'), "\n";
9 Function [ <internal:standard> function htmlspecialchars ] {
H A Dbug45485.phpt11 echo htmlspecialchars($s),"\n";
18 echo htmlspecialchars($s),"\n";
H A Dhtmlentities19.phpt2 htmlentities() / htmlspecialchars() ENT_SUBSTITUTE
14 $a = htmlspecialchars($test, ENT_QUOTES | ENT_SUBSTITUTE, "UTF-8");
H A Dbug49785.phpt2 Bug #49785 (insufficient input string validation of htmlspecialchars())
46 var_dump(_bin2hex(htmlspecialchars("\xc0\xa6", ENT_QUOTES, 'UTF-8')));
56 var_dump(_bin2hex(htmlspecialchars("\x80", ENT_QUOTES, 'Shift_JIS')));
58 var_dump(_bin2hex(htmlspecialchars($c, ENT_QUOTES, 'Shift_JIS')));
82 var_dump(_bin2hex(htmlspecialchars($c, ENT_QUOTES, 'EUC-JP')));
84 var_dump(_bin2hex(htmlspecialchars("\xff", ENT_QUOTES, 'EUC-JP')));
87 var_dump(_bin2hex(htmlspecialchars("\x8e", ENT_QUOTES, 'EUC-JP')));
88 var_dump(_bin2hex(htmlspecialchars("\x8f", ENT_QUOTES, 'EUC-JP')));
122 var_dump(_bin2hex(htmlspecialchars("\x80", ENT_QUOTES, 'BIG5')));
123 var_dump(_bin2hex(htmlspecialchars("\xff", ENT_QUOTES, 'BIG5')));
[all …]
H A Dhtmlentities18.phpt2 htmlentities() / htmlspecialchars() "don't double encode" flag support
20 var_dump(htmlspecialchars($test, ENT_QUOTES, NULL, FALSE));
H A Dhtmlentities.phpt8 $sc_encoded = htmlspecialchars ("<>\"&��\n",ENT_COMPAT,"ISO-8859-1");
H A Dhtmlentities14.phpt15 …lti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s on line…
H A Dhtmlentities13.phpt15 …lti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s on line…
H A Dhtmlentities08.phpt18 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
H A Dhtmlentities09.phpt18 …ulti-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
H A Dhtmlentities-utf-3.phpt2 Test get_next_char(), used by htmlentities()/htmlspecialchars(): validity of UTF-8 sequences
40 $vhe = strlen(htmlspecialchars($s, ENT_QUOTES, "UTF-8")) > 0;
H A Dhtmlentities-utf.phpt14 $sc_encoded = htmlspecialchars ($string, ENT_QUOTES, "utf-8");
H A Dhtmlentities-utf-2.phpt14 $sc_encoded = htmlspecialchars ($string, ENT_QUOTES | ENT_IGNORE, "utf-8");
/PHP-8.0/ext/simplexml/tests/
H A Dbug38424.phpt13 $xml["a1"] = htmlspecialchars($str,ENT_NOQUOTES) ;
15 $xml["a2"] = htmlspecialchars($str,ENT_NOQUOTES) ;
/PHP-8.0/ext/mbstring/tests/
H A Dbug65045.phpt19 $expected === htmlspecialchars_decode(htmlspecialchars($str, ENT_SUBSTITUTE, 'UTF-8')),
20 $expected2 === htmlspecialchars_decode(htmlspecialchars($str2, ENT_SUBSTITUTE, 'UTF-8')),
/PHP-8.0/tests/basic/
H A Dbug67988.phpt2 Bug #67988 (htmlspecialchars() does not respect default_charset specified by ini_set)
/PHP-8.0/ext/libxml/tests/
H A Dbug61367-read_2.phpt20 $dir = htmlspecialchars(dirname(getcwd()));

Completed in 34 milliseconds

12