Add function to use htmlentities without deprecated error

This commit is contained in:
Brent Hopkins 2023-05-11 16:37:21 -05:00 committed by GitHub
parent 1e9c822033
commit 019050ba82
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 = '';