N-Bomb(Nerd) Posted July 25, 2011 Share Posted July 25, 2011 Hi, I've got input that a user is able to pass into my php script.. how would I be able to safely echo that input without them exploiting that to execute code? Quote Link to comment https://forums.phpfreaks.com/topic/242774-safely-echo-user-input/ Share on other sites More sharing options...
AbraCadaver Posted July 25, 2011 Share Posted July 25, 2011 htmlentities() should do it.. Quote Link to comment https://forums.phpfreaks.com/topic/242774-safely-echo-user-input/#findComment-1246950 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.