/PHP-5.3/ext/standard/tests/strings/ |
H A D | htmlspecialchars_basic.phpt | 2 Test htmlspecialchars() function : basic functionality 18 echo "Test 1: " . htmlspecialchars ($s1); 19 echo "Test 2: " . htmlspecialchars ($s2); 20 echo "Test 3: " . htmlspecialchars ($s3); 21 echo "Test 4: " . htmlspecialchars ($s4); 22 echo "Test 5: " . htmlspecialchars ($s5); 23 echo "Test 6: " . htmlspecialchars ($s1,ENT_NOQUOTES); 24 echo "Test 7: " . htmlspecialchars ($s2,ENT_NOQUOTES); 28 echo "Test 11: " . htmlspecialchars ($s1,ENT_COMPAT); 29 echo "Test 12: " . htmlspecialchars ($s2,ENT_COMPAT); [all …]
|
H A D | bug44703.phpt | 2 Bug #44703 (htmlspecialchars() does not detect bad character set argument) 6 var_dump(htmlspecialchars(b"<a href='test'>Test</a>", ENT_COMPAT, 1)); 7 var_dump(htmlspecialchars(b"<a href='test'>Test</a>", ENT_COMPAT, 12)); 8 var_dump(htmlspecialchars(b"<a href='test'>Test</a>", ENT_COMPAT, 125)); 9 var_dump(htmlspecialchars(b"<a href='test'>Test</a>", ENT_COMPAT, 1252)); 12 var_dump(htmlspecialchars(b"<>", ENT_COMPAT, 866)); 13 var_dump(htmlspecialchars(b"<>", ENT_COMPAT, 8666)); 15 var_dump(htmlspecialchars(b"<>", ENT_COMPAT, NULL)); 18 var_dump(htmlspecialchars(b"<>", ENT_COMPAT, 'SJIS')); 19 var_dump(htmlspecialchars(b"<>", ENT_COMPAT, 'SjiS')); [all …]
|
H A D | bug20934.phpt | 2 Bug #20934 (htmlspecialchars returns latin1 from UTF-8) 13 var_dump(utf8_decode(htmlspecialchars($str, ENT_COMPAT, "UTF-8")));
|
H A D | bug45485.phpt | 11 echo htmlspecialchars($s),"\n"; 18 echo htmlspecialchars($s),"\n";
|
H A D | bug49785.phpt | 2 Bug #49785 (insufficient input string validation of htmlspecialchars()) 46 var_dump(_bin2hex(htmlspecialchars("\xc0\xa6", ENT_QUOTES, 'UTF-8'))); 55 var_dump(_bin2hex(htmlspecialchars("\x80", ENT_QUOTES, 'Shift_JIS'))); 57 var_dump(_bin2hex(htmlspecialchars($c, ENT_QUOTES, 'Shift_JIS'))); 81 var_dump(_bin2hex(htmlspecialchars($c, ENT_QUOTES, 'EUC-JP'))); 83 var_dump(_bin2hex(htmlspecialchars("\xff", ENT_QUOTES, 'EUC-JP'))); 86 var_dump(_bin2hex(htmlspecialchars("\x8e", ENT_QUOTES, 'EUC-JP'))); 87 var_dump(_bin2hex(htmlspecialchars("\x8f", ENT_QUOTES, 'EUC-JP'))); 121 var_dump(_bin2hex(htmlspecialchars("\x80", ENT_QUOTES, 'BIG5'))); 122 var_dump(_bin2hex(htmlspecialchars("\xff", ENT_QUOTES, 'BIG5'))); [all …]
|
H A D | htmlentities18.phpt | 2 htmlentities() / htmlspecialchars() "don't double encode" flag support 20 var_dump(htmlspecialchars($test, ENT_QUOTES, NULL, FALSE));
|
H A D | htmlentities.phpt | 8 $sc_encoded = htmlspecialchars ("<>\"&��\n");
|
H A D | get_html_translation_table_error.phpt | 6 * Description: Returns the internal translation table used by htmlspecialchars and htmlentities
|
H A D | htmlentities-utf-3.phpt | 2 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 D | get_html_translation_table_basic3.phpt | 6 * Description: Returns the internal translation table used by htmlspecialchars and htmlentities
|
H A D | htmlentities-utf-2.phpt | 14 $sc_encoded = htmlspecialchars ($string, ENT_QUOTES | ENT_IGNORE, "utf-8");
|
H A D | htmlentities-utf.phpt | 14 $sc_encoded = htmlspecialchars ($string, ENT_QUOTES, "utf-8");
|
H A D | get_html_translation_table_basic4.phpt | 6 * Description: Returns the internal translation table used by htmlspecialchars and htmlentities
|
H A D | get_html_translation_table_variation2.phpt | 6 * Description: Returns the internal translation table used by htmlspecialchars and htmlentities
|
H A D | get_html_translation_table_basic1.phpt | 6 * Description: Returns the internal translation table used by htmlspecialchars and htmlentities
|
H A D | get_html_translation_table_variation1.phpt | 6 * Description: Returns the internal translation table used by htmlspecialchars and htmlentities
|
H A D | get_html_translation_table_basic2.phpt | 6 * Description: Returns the internal translation table used by htmlspecialchars and htmlentities
|
/PHP-5.3/ext/standard/tests/file/ |
H A D | htmlspecialchars.phpt | 2 Test htmlspecialchars() function 12 var_dump( bin2hex( htmlspecialchars(b"chr($i)") ) ); 18 var_dump( htmlspecialchars("<br>", ENT_QUOTES, NULL) ); 19 var_dump( htmlspecialchars("<br>", ENT_COMPAT, NULL) ); 20 var_dump( htmlspecialchars(NULL, NULL, NULL) ); 33 var_dump( htmlspecialchars($str) ); 34 var_dump( htmlspecialchars($str, ENT_QUOTES) ); 35 var_dump( htmlspecialchars($str, ENT_NOQUOTES) ); 36 var_dump( htmlspecialchars($str, ENT_COMPAT) ); 40 var_dump( htmlspecialchars() ); [all …]
|
/PHP-5.3/ext/simplexml/tests/ |
H A D | bug38424.phpt | 13 $xml["a1"] = htmlspecialchars($str,ENT_NOQUOTES) ; 15 $xml["a2"] = htmlspecialchars($str,ENT_NOQUOTES) ;
|
/PHP-5.3/ext/standard/ |
H A D | html.h | 36 PHP_FUNCTION(htmlspecialchars);
|
H A D | html.c | 1313 PHP_FUNCTION(htmlspecialchars) in PHP_FUNCTION() argument
|
H A D | basic_functions.c | 2691 PHP_FE(htmlspecialchars, arginfo_htmlspecialchars)
|
/PHP-5.3/ext/libxml/tests/ |
H A D | bug61367-read.phpt | 18 $dir = htmlspecialchars(dirname(getcwd()));
|
/PHP-5.3/ |
H A D | run-tests.php | 2675 $escaped_details = htmlspecialchars($details, ENT_QUOTES, 'UTF-8'); 2677 $escaped_test_name = basename($file_name) . ' - ' . htmlspecialchars($test_name, ENT_QUOTES);
|
H A D | NEWS | 1556 . Fixed htmlentities/htmlspecialchars accepting certain ill-formed UTF-8 3709 - Fixed bug #45581 (htmlspecialchars() double encoding &#x hex items). (Arnaud) 3875 - Fixed bug #44703 (htmlspecialchars() does not detect bad character set argument). (Andy Wharmby) 4028 - Fixed htmlentities/htmlspecialchars not to accept partial multibyte 4385 - Added a 4th parameter flag to htmlspecialchars() and htmlentities() that
|