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 |
Get Programming PHP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.