mirror of https://github.com/itflow-org/itflow
Add function to use htmlentities without deprecated error
This commit is contained in:
parent
1e9c822033
commit
019050ba82
|
|
@ -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