mirror of
https://github.com/itflow-org/itflow
synced 2026-03-22 21:45:37 +00:00
Add function to use htmlentities without deprecated error
This commit is contained in:
@@ -45,6 +45,10 @@ function key32gen()
|
|||||||
return $key;
|
return $key;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function nullable_htmlentities($unsanitizedInput) {
|
||||||
|
return htmlentities($unsanitizedInput ?? '');
|
||||||
|
}
|
||||||
|
|
||||||
function initials($str) {
|
function initials($str) {
|
||||||
if (!empty($str)) {
|
if (!empty($str)) {
|
||||||
$ret = '';
|
$ret = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user