Merge pull request #676 from bhopkins0/patch-1

Add function to use htmlentities without deprecated error
This commit is contained in:
Johnny 2023-05-11 18:05:12 -04:00 committed by GitHub
commit f136a915b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,10 @@ function key32gen()
return $key;
}
function nullable_htmlentities($unsanitizedInput) {
return htmlentities($unsanitizedInput ?? '');
}
function initials($str) {
if (!empty($str)) {
$ret = '';