htmlentities()
to Convert Characters to HTML Entitieshtmlentities()
to Convert Characters to HTML EntitiesThe htmlentities()
function converts all applicable characters to HTML entities. This is useful for displaying user input in a web page without executing any embedded HTML or JavaScript code.