note 49633 added to function.strip-tags

From: Date: Thu, 03 Feb 2005 13:23:38 +0000
Subject: note 49633 added to function.strip-tags
Groups: php.notes 
Request: Send a blank email to php-notes+get-84433@lists.php.net to get a copy of this message
After wondering why the following was indexed in my trawler despite stripping all text in tags (and punctuation) "» valign left align middle border 0 src go gif name search1 onclick search", please take a quick look at what produced it: <DIV style="position: absolute; TOP:22%; LEFT:68%;"><input type="image" alt="Go >" valign="left" align="middle" border=0 src="go.gif" name="search1" onClick="search()"></div>... looking at this closely, it is possible to see that despite the 'Go >' statement being enclosed in speech marks (with the right facing chevron), strip_tags() still assumes that it is the end of the input statement, and treats everything after as text. Not sure if this has been fixed in later versions; im using v4.3.3... good hunting. ---- Manual Page -- http://www.php.net/manual/en/function.strip-tags.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+49633 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49633&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49633&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49633&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49633&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49633&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+49633&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#84433) next »