2
Test get_html_translation_table() function : basic functionality - XHTML 1.0
5
echo "*** Testing get_html_translation_table() : basic functionality/XHTML 1.0 ***\n";
7
echo "-- with table = HTML_ENTITIES, ENT_QUOTES --\n";
8
$table = HTML_ENTITIES;
9
/* uses ' to share the code path with HTML 4.01 */
10
$tt = get_html_translation_table($table, ENT_QUOTES | ENT_XHTML, "UTF-8");
12
var_dump( count($tt) );
15
echo "-- with table = HTML_ENTITIES, ENT_COMPAT --\n";
16
$table = HTML_ENTITIES;
17
$tt = get_html_translation_table($table, ENT_COMPAT | ENT_XHTML, "UTF-8");
18
var_dump( count($tt) );
20
echo "-- with table = HTML_ENTITIES, ENT_NOQUOTES --\n";
21
$table = HTML_ENTITIES;
22
$tt = get_html_translation_table($table, ENT_NOQUOTES | ENT_XHTML, "UTF-8");
23
var_dump( count($tt) );
25
echo "-- with table = HTML_SPECIALCHARS, ENT_COMPAT --\n";
26
$table = HTML_SPECIALCHARS;
27
$tt = get_html_translation_table($table, ENT_COMPAT, "UTF-8");
29
var_dump( count($tt) );
32
echo "-- with table = HTML_SPECIALCHARS, ENT_QUOTES --\n";
33
$table = HTML_SPECIALCHARS;
34
$tt = get_html_translation_table($table, ENT_QUOTES | ENT_XHTML, "UTF-8");
38
echo "-- with table = HTML_SPECIALCHARS, ENT_NOQUOTES --\n";
39
$table = HTML_SPECIALCHARS;
40
$tt = get_html_translation_table($table, ENT_NOQUOTES | ENT_XHTML, "UTF-8");
48
*** Testing get_html_translation_table() : basic functionality/XHTML 1.0 ***
49
-- with table = HTML_ENTITIES, ENT_QUOTES --
307
-- with table = HTML_ENTITIES, ENT_COMPAT --
309
-- with table = HTML_ENTITIES, ENT_NOQUOTES --
311
-- with table = HTML_SPECIALCHARS, ENT_COMPAT --
320
-- with table = HTML_SPECIALCHARS, ENT_QUOTES --
333
-- with table = HTML_SPECIALCHARS, ENT_NOQUOTES --
b'\\ No newline at end of file'