note 65326 added to function.strip-tags

From: Date: Fri, 28 Apr 2006 16:21:17 +0000
Subject: note 65326 added to function.strip-tags
Groups: php.notes 
Request: Send a blank email to php-notes+get-110019@lists.php.net to get a copy of this message
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.) ---- 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/65326 Del: integrated -- http://master.php.net/note/delete/65326/integrated Del: useless -- http://master.php.net/note/delete/65326/useless Del: bad code -- http://master.php.net/note/delete/65326/bad+code Del: spam -- http://master.php.net/note/delete/65326/spam Del: non-english -- http://master.php.net/note/delete/65326/non-english Del: in docs -- http://master.php.net/note/delete/65326/in+docs Del: other reasons-- http://master.php.net/note/delete/65326 Reject -- http://master.php.net/note/reject/65326 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#110019) next »