I've got a website I'm working on where bands will enter a bio for themselves and I'm using a textarea element to take the data. I want to parse their entries upon submission to determine whether or not there is malicious code entered in it that will screw up my script or the database where the data is to be stored.

Can anyone lead me to some classes or scripts or algorithms that will provide some insight into processing/parsing this type of user input?