note 54312 deleted from function.strip-tags by nlopess
| From: | nlopess@php.net | Date: | Thu, 30 Jun 2005 09:15:27 +0000 |
| Subject: | note 54312 deleted from function.strip-tags by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-91191@lists.php.net to get a copy of this message | ||
Note Submitter: cristianDOTzuddas AT gmail DOT com
----
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!!! :)