#start Posting Rules htmlcode checker
dprint("Checking for html tags status");
$htf=0;
$ua->requests_redirectable;

$forumdis="forumdisplay.php?f=";
 my $bver=substr($ver, index($ver, ' ')+1, 1);
  $bver =~ s/ //g;
 if($bver=~m/4/i){
    $forumdis="forumdisplay.php?";
}
 $xsstmp="";
for($i=1;$i<=100;$i++){
    $source=$ua->get("$target/$forumdis$i")->decoded_content;
    if($source !~ m/Invalid Forum specified/i){
        $source =~ /HTML code is \<strong\>(.*?)\<\/strong\>/;
        if($1 =~ m/On/i){
            $htf=1;
            $xsstmp="$xsstmp\html tag are \"ON\" and target is vulnerable to XSS Attack\n$target/$forumdis$i\n"
        }
    }else{
        goto enhtml;
    }
}


enhtml:;
if($htf==0){
    fprint("HTML tag are Disable");
}else{
    tprint($xsstmp);
}

#end Posting Rules htmlcode checker
