Help for this page

Select Code to Download


  1. or download this
    $string =~ s/\</\&lt\;/g; 
    $string =~ s/\>/\&gt\;/g; 
    $string =~ s/[\"\'\}\{\)\(\+]//g; 
    ...
    $string =~ s/(<[\s\/]*)(script\b[^>]*>)/$1x$2/gi; 
    $string =~ s/<*(iframe)[^>]+>//gi; 
    $string =~ s/<*(script)[^>]+>//gi;
    
  2. or download this
    use CGI 
    $q = new CGI;
    $string = $q->param('string');