View difference between Paste ID: m0RxWfWA and UMSX42yU
SHOW: | | - or go back to the newest paste.
1
<?php
2
/*
3
* libs/functions.php
4
*/
5-
	xssClean($input) {
5+
	xssClean(string $input) {
6
		return htmlspecialchars($input); //this way, you can reuse and improve your script from time to time
7
	}
8
?>
9
10
<?php
11
	require_once 'db/db.php';
12
	require_once 'libs/functions.php';
13
	$output = 'Hello World'
14
	echo xssClean($output);
15
?>