note 49462 added to function.preg-replace
| From: | Text505Atpositivesale_nospam_dotcom at osu1 dot php dot net | Date: | Fri, 28 Jan 2005 19:41:11 +0000 |
| Subject: | note 49462 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-84136@lists.php.net to get a copy of this message | ||
When converting HTML to text, like in the php Manual example, you will want to strip out style tags
and contents between these tags, in addition to javascript.
"'<style[^>]*?>.*?</style>'si", //Strip out style tags
Replace with: ""
----
Manual Page -- http://www.php.net/manual/en/function.preg-replace.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49462
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49462&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49462&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49462&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49462&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49462&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49462&report=yes
Search -- http://master.php.net/manage/user-notes.php