nullable_htmlentities - prevent Passing null to parameter error
This commit is contained in:
+1
-1
@@ -51,7 +51,7 @@ function key32gen()
|
|||||||
function nullable_htmlentities($unsanitizedInput)
|
function nullable_htmlentities($unsanitizedInput)
|
||||||
{
|
{
|
||||||
//return htmlentities($unsanitizedInput ?? '');
|
//return htmlentities($unsanitizedInput ?? '');
|
||||||
return htmlspecialchars($unsanitizedInput, ENT_QUOTES, 'UTF-8');
|
return htmlspecialchars($unsanitizedInput ?? '', ENT_QUOTES, 'UTF-8');
|
||||||
}
|
}
|
||||||
|
|
||||||
function initials($str)
|
function initials($str)
|
||||||
|
|||||||
Reference in New Issue
Block a user