diff --git a/functions.php b/functions.php index 850b4cde..cc18fa72 100644 --- a/functions.php +++ b/functions.php @@ -45,6 +45,10 @@ function key32gen() return $key; } +function nullable_htmlentities($unsanitizedInput) { + return htmlentities($unsanitizedInput ?? ''); +} + function initials($str) { if (!empty($str)) { $ret = '';