File: dehtml

package info (click to toggle)
units 2.25-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,824 kB
  • sloc: ansic: 6,836; sh: 899; python: 803; yacc: 605; makefile: 490; 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;