When I use htmlentities() function in my PHP projects, should I always use it with a flag so it is compatible with other language characters?
$my_variable = $some_data;
$output_variable = htmlentities($my_variable);
or...
$my_variable = $some_data;
$output_variable = htmlentities($my_variable, ENT_COMPAT, 'UTF-8');
If neither of the above, what is the proper way to use this function.
Thank you!