note 54312 added to function.strip-tags

From: Date: Thu, 30 Jun 2005 08:07:07 +0000
Subject: note 54312 added to function.strip-tags
Groups: php.notes 
Request: Send a blank email to php-notes+get-91185@lists.php.net to get a copy of this message
The "stripeentag" function posted by "joris878 at hotmail dot com" (04 Jun 2003) is cool but... got a bug :) In this line of code: <? for($i=1;$i<=count($atr);$i++) ?> count($atr) is always 0 because $atr is empty, so the function never enters the loop... the right param is $attr so the right line is: <? for($i=1;$i<=count($attr);$i++) ?> But with this right line the function enters here: <? $val = filter($img,$attr[$i]."="," "); ?> The "filter" function isn't a standard PHP function so Joris878... WE NEED THIS FUNCTION!!! :) ---- Manual Page -- http://www.php.net/manual/en/function.strip-tags.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+54312 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54312&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54312&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54312&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54312&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54312&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54312&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+54312&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#91185) next »