If you had(have) a function that parses and cleans, and otherwise generally handles, anything that a user threw at it, what would you want it to do? That way, you only had to do something like
Code: Select all
$var=userDataFilter($_POST['foo']);I'm not asking about using already existing functions, or even looking for sample code. I'm just curious about concepts.
cleaning bad html, parsing emoticons, stripping db escape chars, etc.