JFilterInput::clean

Method to be called by another php script. Processes for XSS and specified bad code.