Lines Matching refs:htmlspecialchars
2 Test htmlspecialchars() function
5 /* retrieving htmlspecialchars from the ANSI character table */
6 echo "*** Retrieving htmlspecialchars for 256 characters ***\n";
8 var_dump( bin2hex( htmlspecialchars("chr($i)") ) );
11 echo "\n*** Testing htmlspecialchars() with NULL as first, second and third argument ***\n";
12 var_dump( htmlspecialchars("<br>", NULL, 'iso-8859-1') );
13 var_dump( htmlspecialchars("<br>", ENT_NOQUOTES, NULL) );
14 var_dump( htmlspecialchars("<br>", ENT_QUOTES, NULL) );
15 var_dump( htmlspecialchars("<br>", ENT_COMPAT, NULL) );
16 var_dump( htmlspecialchars(NULL, NULL, NULL) );
20 var_dump( htmlspecialchars("<br>Testing<p>New file.</p><p><br>File <b><i><u>WORKS!!!</i></u></b></p…
23 echo "\n*** Testing a normal string with htmlspecialchars() ***\n";
24 var_dump( htmlspecialchars("<br>Testing<p>New file.</p> ", ENT_QUOTES, 'iso-8859-1' ) );
27 echo "\n*** Testing htmlspecialchars() on a quote...\n";
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) );
37 *** Retrieving htmlspecialchars for 256 characters ***
295 *** Testing htmlspecialchars() with NULL as first, second and third argument ***
305 *** Testing a normal string with htmlspecialchars() ***
308 *** Testing htmlspecialchars() on a quote...