note 100699 deleted from function.htmlentities by danbrown

From: Date: Mon, 01 Nov 2010 12:34:02 +0000
Subject: note 100699 deleted from function.htmlentities by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-173642@lists.php.net to get a copy of this message
Note Submitter: Timothy Stringfellow ---- To stop all the characters that would be classified as HTML entities from being injected in the first place, use something like the following: <?php function hasCharacters($string){ if($string != htmlentities($string)){ return false; } else{ return true; } } ?> See my site at http://www.bodeezer.com

« previous php.notes (#173642) next »