note 35679 added to function.strip-tags

From: Date: Wed, 10 Sep 2003 17:03:39 +0000
Subject: note 35679 added to function.strip-tags
Groups: php.notes 
Request: Send a blank email to php-notes+get-55958@lists.php.net to get a copy of this message
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(). ---- Manual Page -- http://www.php.net/manual/en/function.strip-tags.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35679 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35679&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35679&report=yes

« previous php.notes (#55958) next »