note 65326 deleted from function.strip-tags by danbrown

From: Date: Sun, 17 May 2009 16:00:47 +0000
Subject: note 65326 deleted from function.strip-tags by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-154738@lists.php.net to get a copy of this message
Note Submitter: soapergem at gmail dot com ---- In my prior comment I made a mistake that needs correcting. Please change the forward slashes that begin and terminate my regular expression to a different character, like the at-sign (@), for instance. Here's what it should read: $regex = '@</?\w+((\s+\w+(\s*=\s*'; $regex .= '(?:".*?"|\'.*?\'|[^\'">\s]+))?)+'; $regex .= '\s*|\s*)/?>@i'; (There were forward-slashes embedded in the regular expression itself, so using them to begin and terminate the expression would have caused a parse error.)

« previous php.notes (#154738) next »