9 # <a href="http://validator.w3.org/check?uri=referer">
10 # <img src="http://www.w3.org/Icons/valid-html401"
11 # alt="Valid HTML 4.01 Transitional"
12 # height="31" width="88"></a>
14 file_find(\&fix_if_file,@ARGV)
18 my $fh = IO::File->new($_,'r') or
19 die "Unable to open $_ for reading: $!";
23 if (# strip out the w3c img callback; replace with alt text
24 $fc =~ s{<img\s+src="http://www.w3c.org/Icons/[^"]+"[^>]*?alt="([^"]+)"[^>]*>}{$1}img
26 # if it doesn't have alt text, just replace it with Valid HTML
27 $fc =~ s{<img\s+src="http://www.w3c.org/Icons/[^"]+"[^>]*>}{Valid HTML}img ) {
28 $fh = IO::File->new($_,'w') or
29 die "Unable to open $_ for writing: $!";