How to sanitize or cleanup user entered data in PHP


function cleanInput($input) { $search = array( ‘@]*?>.*?@si’, // Strip out javascript ‘@<[\/\!]*?[^]*?>@si’, // Strip out HTML tags ‘@…

Source: How to sanitize or cleanup user entered data in PHP

Advertisements