Can someone recommend an up to date library for data Sanitization in PHP ?
I am looking for a library that proposes a set of functions for data sanitization. Email validation/sanitization (remove those %0A, \r...), strip htlm (stripslashes(htmlentities), remove script, SQL injection … any form of exploit related to data submitted by users.
CakePHP sanitization class (not the "framework") looks nice.. ?