Help for this page

Select Code to Download


  1. or download this
    foreach my $in_fname (@ARGV) {
      ...
    }
    
  2. or download this
      $input_txt =~ s/\<script.*?\<\/script\>//igs; # remove code
      $input_txt =~ s/\<.*?\>//gs; # remove html tags
      $input_txt =~ s/\&nbsp;/ /gs; # &nbsp -> space
      $input_txt =~ s/\s{2,}/ /gs; # Remove extra spaces
      print $input_txt;
    
  3. or download this
      <a href="" onClick="alert('&lt; foo! &gt;');">
      not:
      <a href="" onClick="alert('< foo! >');"> Invalid HTML!
    
  4. or download this
      while( $input_txt =~ s/\<.*?\>//gs ) {};