Removing Metacharacters in php
We are using PHP co开发者_运维问答de. 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.
精彩评论