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>", ENT_NOQUOTES, NULL) );
13 var_dump( htmlspecialchars("<br>", ENT_QUOTES, NULL) );
14 var_dump( htmlspecialchars("<br>", ENT_COMPAT, NULL) );
18 var_dump( htmlspecialchars("<br>Testing<p>New file.</p><p><br>File <b><i><u>WORKS!!!</i></u></b></p…
21 echo "\n*** Testing a normal string with htmlspecialchars() ***\n";
22 var_dump( htmlspecialchars("<br>Testing<p>New file.</p> ", ENT_QUOTES, 'iso-8859-1' ) );
25 echo "\n*** Testing htmlspecialchars() on a quote...\n";
27 var_dump( htmlspecialchars($str) );
28 var_dump( htmlspecialchars($str, ENT_QUOTES) );
29 var_dump( htmlspecialchars($str, ENT_NOQUOTES) );
30 var_dump( htmlspecialchars($str, ENT_COMPAT) );
35 *** Retrieving htmlspecialchars for 256 characters ***
293 *** Testing htmlspecialchars() with NULL as first, second and third argument ***
301 *** Testing a normal string with htmlspecialchars() ***
304 *** Testing htmlspecialchars() on a quote...