PHP function htmlspecialchars - escaping characters
Available in PHP 4, 5, 7. Converts special characters that have meaning in HTML to HTML entities that can be rendered in the normal way. Parameters Parameter Data type Default value Note $string string not String to be converted. $flags int ENT_COMPA…