note 65198 deleted from function.strip-tags by bjori
| From: | bjori@php.net | Date: | Wed, 26 Apr 2006 19:30:18 +0000 |
| Subject: | note 65198 deleted from function.strip-tags by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-109781@lists.php.net to get a copy of this message | ||
Note Submitter: soapergem at gmail dot com
----
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';