my $fh = IO::File->new("$config_fn") ||
die "Please configure the mediawiki user/passswd in '$config_fn'\n";
-my $api_url = "http://localhost/mediawiki/api.php";
+my $api_url = "https://pve.proxmox.com/mediawiki/api.php";
my $config = <$fh>;
chomp $config;
my $parser_opts = {
api_version => 3,
- text_h => [ sub { $pve_content .= shift }, "dtext" ],
+ text_h => [ sub { $pve_content .= shift }, "text" ],
};
my $parser = HTML::Parser->new(%$parser_opts);
+ $parser->ignore_elements(qw(script style));
my $fh = IO::File->new("/usr/share/pve-docs/$filename", "r") or
die "unable to open file '$filename' - $!\n";