Hello guys, I'm building a function to sanitize text before putting it into a database, and thought maybe converting all potentially harmful characters into ASCII would be a good way to keep the bad out. Do you guys have any thoughts on this approach? I can't find any resources about it online, even though it seems like a sound idea...
There exists lots of sanitization functions in php for example available on the web. I think that in the site www.php.org you can get some of them.