Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

htmlentities()

3 tags 1 category

htmlentities() — Convert all applicable characters to HTML entities.

This function is identical to htmlspecialchars in all ways, except with htmlentities, all characters which have HTML character entity equivalents are translated into these entities. The get_html_translation_table function can be used to return the translation table used dependent upon the provided flags constants.

If you want to decode instead (the reverse) you can use html_entity_decode.

Inputs: string: The input string. double_encode: When double_encode is turned off PHP will not encode existing html entities. The default is to convert everything.

Returns: Returns the encoded string. If the input string contains an invalid code unit sequence within the given encoding an empty string will be returned, unless either the ENT_IGNORE or ENT_SUBSTITUTE flags are set.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…