Name
get_html_translation_table
Synopsis
array get_html_translation_table([intwhich[, intstyle]])
Returns the translation table used by either
htmlspecialchars( )
or htmlentities( ).
If which is
HTML_ENTITIES, the table used by
htmlentities( ) is returned; if
which is
HTML_SPECIALCHARS, the table used by
htmlspecialchars( ) is returned. Optionally, you
can specify which quotes style you want returned; the possible values
are the same as those in the translation functions:
|
|
Converts double quotes, but not single quotes |
|
|
Does not convert either double quotes or single quotes |
|
|
Converts both single and double quotes |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access