note 65198 added to function.strip-tags
| From: | soapergem at gmail dot com | Date: | Wed, 26 Apr 2006 17:50:24 +0000 |
| Subject: | note 65198 added to function.strip-tags | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-109777@lists.php.net to get a copy of this message | ||
In my last comment, change the three occurences (all occurences in the second block) of a
double-backslash immediately followed by a single quote with a single-backslash immediately followed
by a single quote. The preview page for these comments was giving me apparently erroneous output, so
I modified by adding backslashes. Now that they are showing up when they weren't before change
it.
Correct regex:
$regex = '/</?\w+((\s+\w+(\s*=\s*';
$regex .= '(?:".*?"|\'.*?\'|[^\'">\s]+))?)+';
$regex .= '\s*|\s*)/?>/i';
----
Server IP: 64.71.164.2
Probable Submitter: 70.226.186.165
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.strip-tags.php
Edit -- http://master.php.net/note/edit/65198
Del: integrated -- http://master.php.net/note/delete/65198/integrated
Del: useless -- http://master.php.net/note/delete/65198/useless
Del: bad code -- http://master.php.net/note/delete/65198/bad+code
Del: spam -- http://master.php.net/note/delete/65198/spam
Del: non-english -- http://master.php.net/note/delete/65198/non-english
Del: in docs -- http://master.php.net/note/delete/65198/in+docs
Del: other reasons-- http://master.php.net/note/delete/65198
Reject -- http://master.php.net/note/reject/65198
Search -- http://master.php.net/manage/user-notes.php