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

View File

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