version 1.5, 2002/04/08 12:51:03
|
version 1.6, 2002/05/21 19:13:53
|
Line 147 while (my $token = $parser->get_tag('cla
|
Line 147 while (my $token = $parser->get_tag('cla
|
$ttype='E'; |
$ttype='E'; |
$excludeflag=0; |
$excludeflag=0; |
$outcache.=$token->[2]; |
$outcache.=$token->[2]; |
my $retval=&evalconditions($outcache); |
|
if (&evalconditions($outcache)) { |
if (&evalconditions($outcache)) { |
$output.=$outcache; |
$output.='<!-- FILTERED OUT -->'; |
} |
} |
else { |
else { |
$output.='<!-- FILTERED OUT -->'; |
$output.=$outcache; |
} |
} |
$outcache=''; |
$outcache=''; |
} |
} |
Line 176 sub evalconditions {
|
Line 175 sub evalconditions {
|
my $eparser = HTML::TokeParser->new(\$parsetext); |
my $eparser = HTML::TokeParser->new(\$parsetext); |
unless (@{$conditions{'name'}} or |
unless (@{$conditions{'name'}} or |
@{$conditions{'attribute'}}) { |
@{$conditions{'attribute'}}) { |
return 0; |
return 1; |
} |
} |
my $nameflag=0; |
my $nameflag=0; |
my $cdataflag=0; |
my $cdataflag=0; |