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