File: dehtml

package info (click to toggle)
units 2.26-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 3,844 kB
  • sloc: ansic: 6,851; python: 969; sh: 903; yacc: 605; makefile: 491; perl: 435
file content (12 lines) | stat: -rwxr-xr-x 181 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/perl

{
  local $/=undef;
  open FILE, $ARGV[0] or die "Could not open file";
  $data = <FILE>;
  close FILE;
}

$data =~ s/<.*?>//sg;
$data =~ s/&.*?;//sg;
print $data;