note 35679 deleted from function.strip-tags by aharvey

From: Date: Thu, 20 Sep 2012 11:42:53 +0000
Subject: note 35679 deleted from function.strip-tags by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-190906@lists.php.net to get a copy of this message
Note Submitter: dougal at gunters dot org ---- strip_tags() appears to become nauseated at the site of a <!DOCTYPE> declaration (at least in PHP 4.3.1). You might want to do something like: $html = str_replace('<!DOCTYPE','<DOCTYPE',$html); before processing with strip_tags().

« previous php.notes (#190906) next »