Name
htmlentities
Synopsis
string htmlentities(stringstring
[, intstyle
[, stringencoding
]])
Converts all characters in string
that have special meaning in HTML and returns the resulting string.
All entities defined in the HTML standard are converted. If
supplied, style
determines the manner in
which quotes are translated. The possible values for
style
are:
| Converts double quotes but not single quotes |
| Does not convert either double quotes or single quotes |
| Converts both single and double quotes |
If supplied, encoding
determines
the final encoding for the characters. The possible values for
encoding
are:
| |
| |
| |
| |
| |
| |
Get Programming PHP, 2nd Edition 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.