WebbServerProg/www/public/Moment-2/FeetBook/cleanData.php
2024-08-26 10:40:59 +02:00

24 lines
516 B
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<?php
function cleanData($data) {
mb_internal_encoding("UTF-8");
if(!mb_check_encoding($data)){
header('Location: start.php');
}
$data = strip_tags($data);
$data = trim($data);
$data = stripslashes($data);
return $data;
}
?>
</body>
</html>