|
|
@ -152,7 +152,7 @@
|
|
|
|
* Convert special characters to html entities.
|
|
|
|
* Convert special characters to html entities.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function html_sanitize(
|
|
|
|
function html_sanitize(
|
|
|
|
string $str, int $flags = ENT_QUOTES|ENT_SUBSTITUTE,
|
|
|
|
?string $str, int $flags = ENT_QUOTES|ENT_SUBSTITUTE,
|
|
|
|
?string $encoding = null, bool $double_encode = true
|
|
|
|
?string $encoding = null, bool $double_encode = true
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
if ($str == "") {
|
|
|
|
if ($str == "") {
|
|
|
|