use Config\Services;
// CodeIgniter Security Helpers
if (!
function_exists('sanitize_filename'
)) { /**
* Sanitize a filename to use in a URI.
*/
function sanitize_filename(string
$filename): string
{ return Services::
security()->
sanitizeFilename($filename);
}}if (!
function_exists('strip_image_tags'
)) { /**
* Strip Image Tags
*/
function strip_image_tags(string
$str): string
{ return preg_replace( [