AbydosGater Posted October 31, 2006 Share Posted October 31, 2006 Hi i was wondering, my chatroom is after being spammed by an idiot <marqueeing> the entire chat room,I want to block html form being used and i have a way i wish to do it!To check if the $message variable contains either a < or a >, how would i do that?What function do i use?Thanks Abydos Link to comment https://forums.phpfreaks.com/topic/25750-searching-a-string-for-something-how/ Share on other sites More sharing options...
kenrbnsn Posted October 31, 2006 Share Posted October 31, 2006 Use the function [url=http://www.php.net/strip_tags]strip_tags()[/url] or the function [url=http://www.php.net/htmlentities]htmlentities()[/url]. Ken Link to comment https://forums.phpfreaks.com/topic/25750-searching-a-string-for-something-how/#findComment-117570 Share on other sites More sharing options...
AbydosGater Posted October 31, 2006 Author Share Posted October 31, 2006 Thanks ken! Link to comment https://forums.phpfreaks.com/topic/25750-searching-a-string-for-something-how/#findComment-117571 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.