Name
get_html_translation_table
Synopsis
array get_html_translation_table([intwhich[, intstyle[, stringencoding]]])
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 |
| Table for HTML 4.01 entities |
| Table for XML 1 entities |
| Table for XHTML entities |
| Table for HTML 5 entities |
The encoding optional
parameter has the following possible selections:
| Western European, Latin-1. |
| Cyrillic charset (Latin/Cyrillic), rarely used. |
| Western European, Latin-9. Adds the Euro sign, French and Finnish letters missing in Latin-1. |
| ASCII compatible multibyte 8-bit Unicode. |
| DOS-specific Cyrillic charset. |
| Windows-specific Cyrillic charset. |
| Windows-specific charset for Western European. |
| Russian. |
| Traditional Chinese, mainly used in Taiwan. |
| Simplified Chinese, national standard character set. |
| Big5 with Hong Kong extensions, Traditional Chinese. |
| Japanese. |
| Japanese. |
| Charset that was used by Mac OS. |
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