note 17656 added to function.strip-tags

From: Date: Tue, 18 Dec 2001 17:57:25 +0000
Subject: note 17656 added to function.strip-tags
Groups: php.notes 
Request: Send a blank email to php-notes+get-23135@lists.php.net to get a copy of this message
strip_tags has doesn't recognize that css within the style tags are not document text. To fix this do something similar to the following: $htmlstring = preg_replace("'<style[^>]*?>.*?</style>'si",'',$htmlstring); -- http://www.php.net/manual/en/function.strip-tags.php http://master.php.net/manage/user-notes.php?action=edit+17656 http://master.php.net/manage/user-notes.php?action=delete+17656 http://master.php.net/manage/user-notes.php?action=reject+17656

« previous php.notes (#23135) next »