htmlentities() Encoder Posted on May 17, 2021May 17, 2021 by Mark FeehilyComments Off on htmlentities() Encoder htmlentities() will convert all applicable characters to their HTML entities. This function is the opposite of html_entity_decode() in that it converts all HTML entities to their applicable characters.