Guest upirate Posted March 29, 2007 Share Posted March 29, 2007 Im sure this has been asked. I tried searching for it and was not able to find it. thankyou Link to comment https://forums.phpfreaks.com/topic/44808-how-to-stop-people-from-entering-html-in-a-text-box/ Share on other sites More sharing options...
boo_lolly Posted March 29, 2007 Share Posted March 29, 2007 check out these fucntions: nl2br(), htmlspecialchars(), htmlentities(). Link to comment https://forums.phpfreaks.com/topic/44808-how-to-stop-people-from-entering-html-in-a-text-box/#findComment-217630 Share on other sites More sharing options...
DeathStar Posted March 29, 2007 Share Posted March 29, 2007 strip_tags() Worked for me! echo strip_tags($result); Link to comment https://forums.phpfreaks.com/topic/44808-how-to-stop-people-from-entering-html-in-a-text-box/#findComment-217634 Share on other sites More sharing options...
boo_lolly Posted March 29, 2007 Share Posted March 29, 2007 haha, yeah striptags works too =) Link to comment https://forums.phpfreaks.com/topic/44808-how-to-stop-people-from-entering-html-in-a-text-box/#findComment-217637 Share on other sites More sharing options...
DeathStar Posted March 29, 2007 Share Posted March 29, 2007 ;D Link to comment https://forums.phpfreaks.com/topic/44808-how-to-stop-people-from-entering-html-in-a-text-box/#findComment-217681 Share on other sites More sharing options...
Guest upirate Posted March 29, 2007 Share Posted March 29, 2007 thanks guys! Link to comment https://forums.phpfreaks.com/topic/44808-how-to-stop-people-from-entering-html-in-a-text-box/#findComment-217707 Share on other sites More sharing options...
DeathStar Posted March 30, 2007 Share Posted March 30, 2007 thats what we are here for Link to comment https://forums.phpfreaks.com/topic/44808-how-to-stop-people-from-entering-html-in-a-text-box/#findComment-218256 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.