The html_entity_decode() function converts HTML entities to characters. The html_entity_decode() function is the opposite of htmlentities().