How is important of the php function – htmlentities
The PHP function – htmlentities converts characters to HTML entities. Especially special characters (like <) into their escaped/encoded values (like <). It allows you to show to display the string without the browser reading it as HTML