We are using PHP code. For security reason we need to remove the Metacharacters from User Supplied Datas.
How is it possible by preg or any other inbuilt function is in PHP?
……………………………………..
Assuming you mean “Characters which cause SQL Injection or XSS problems”.
No, you don’t. Just practise good escaping practises before you make queries, or output markup.