Re: strip_tags

From: Date: Tue, 12 Aug 2008 19:12:56 +0000
Subject: Re: strip_tags
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-277996@lists.php.net to get a copy of this message
> Actually, yes, the data is likely to be redisplayed to the users on a > website. I covered that in my answer. Likely maybe; a certainty no. > However, when shoving the data to the browser, I use > htmlentities(). Is it recommended to use strip_tags() before sending to > htmlentities()? Not unless you need to strip HTML tags. Usually htmlspecialchars() is enough. -- Richard Heyes http://www.phpguru.org

« previous php.general (#277996) next »