mirror of https://github.com/itflow-org/itflow
Merge pull request #676 from bhopkins0/patch-1
Add function to use htmlentities without deprecated error
This commit is contained in:
commit
f136a915b4
|
|
@ -45,6 +45,10 @@ function key32gen()
|
|||
return $key;
|
||||
}
|
||||
|
||||
function nullable_htmlentities($unsanitizedInput) {
|
||||
return htmlentities($unsanitizedInput ?? '');
|
||||
}
|
||||
|
||||
function initials($str) {
|
||||
if (!empty($str)) {
|
||||
$ret = '';
|
||||
|
|
|
|||
Loading…
Reference in New Issue