5
0
mirror of git://git.proxmox.com/git/pve-docs.git synced 2025-02-08 05:57:33 +03:00

do not include JS/Style inside pvehide tag

This commit is contained in:
Dietmar Maurer 2016-10-21 17:43:37 +02:00
parent dc7c3dd9e3
commit 4aa7516da7

View File

@ -55,9 +55,10 @@ sub update_page {
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";