WebbServerProg/www/public/Moment-3&4/dataBas/cleanData.php

18 lines
303 B
PHP
Raw Permalink Normal View History

2024-09-13 14:45:04 +00:00
<?php
function cleanData($data)
{
mb_internal_encoding("UTF-8");
if (!mb_check_encoding($data)) {
header('Location: start.php');
}
$data = strip_tags($data);
$data = htmlspecialchars($data);
$data = trim($data);
$data = stripslashes($data);
return $data;
}
?>