Returns a html translation table array.
The translation tables used by htmlspecialchars() and htmlentities() can be fetched with get_html_translation_table(). The table returned is in the form of an associative array. The table parameter can be set to one of the two values HTML_ENTITIES and HTML_SPECIALCHARS. The possible values for quote_style are ENT_COMPAT, which only escapes double quotes, ENT_NOQUOTES, for no quote escaping, and ENT_QUOTES for escaping both double and single quotes.
<pre>
<?php
print htmlspecialchars(print_r(get_html_translation_table(HTML_SPECIALCHARS), TRUE));
?>
</pre>
Array
(
[&] => &
["] => "
[<] => <
[>] => >
)
This code prints the contents of the HTML_SPECIALCHARS table. The HTML_ENTITIES table is much larger.