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? 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.. Link to comment https://forums.phpfreaks.com/topic/242774-safely-echo-user-input/#findComment-1246950 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.