See http://php.net/manual/en/function.htmlspecialchars.php for details on the parameters
and purpose of the function.
public static htmlspecialchars ( string | array $string, integer $quote_flag = null, string $encoding = 'UTF-8', boolean $decode = true, boolean $double_encode = true ) : string | ||
$string | string | array | The string or array of strings to escape |
$quote_flag | integer | Sets what quotes and doublequotes are escaped |
$encoding | string | The encoding of the passed string |
$decode | boolean | Whether or not to unescape any html entities first |
$double_encode | boolean | Whether or not to double escape any html entities |
return | string | The escaped string |