File: dehtml

package info (click to toggle)
units 2.24-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,488 kB
  • sloc: ansic: 6,512; sh: 899; python: 796; yacc: 457; makefile: 442; perl: 435
file content (12 lines) | stat: -rwxr-xr-x 181 bytes parent folder | download | duplicates (2)
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;