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:
parent
dc7c3dd9e3
commit
4aa7516da7
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user