I've read a lot of debate on the pros and cons of sanitising user input and there doesn't appear to be a definitive answer either way.
My scenario is that I am collecting email addresses via a HTML/jQuery form so that those email addresses can be used in a mailing list. There will be no retrieval from the database at this stage, therefore no usage of JSON, XML etc.
Do I need to be worried about sanitising user input or not? A good number of people seem to be saying that sanitisation on the way in isn't needed whilst others say you should never underestimate the need to sanitise whenever you can.
Does anybody have any thoughts that would make this clearer?