note 30184 deleted from function.htmlentities by sniper

From: Date: Thu, 02 Oct 2003 01:06:03 +0000
Subject: note 30184 deleted from function.htmlentities by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-57568@lists.php.net to get a copy of this message
Note Submitter: geoff@richfool.com ---- if you just want to know if the variable contains HTML stuff you can use this. function containshtml($text) { $htmltext = htmlentities($text); if(strcmp($text, $htmltext) <> 0) { return TRUE; } else { return FALSE; } }

« previous php.notes (#57568) next »