note 30184 added to function.htmlentities

From: Date: Sun, 09 Mar 2003 23:32:25 +0000
Subject: note 30184 added to function.htmlentities
Groups: php.notes 
Request: Send a blank email to php-notes+get-45047@lists.php.net to get a copy of this message
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; } } -- http://www.php.net/manual/en/function.htmlentities.php http://master.php.net/manage/user-notes.php?action=edit+30184 http://master.php.net/manage/user-notes.php?action=delete+30184 http://master.php.net/manage/user-notes.php?action=reject+30184

« previous php.notes (#45047) next »