Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "onclick attributes cause errors.So sanitize them."

This reverts commit 8d4fec7.
  • Loading branch information...
commit a1f8ec3acb257eb611812ad28bb076fba7e9dd60 1 parent 8d4fec7
@mizzy authored
Showing with 1 addition and 17 deletions.
  1. +1 −17 webiblo.pl
View
18 webiblo.pl
@@ -6,7 +6,6 @@
use LWP::Simple;
use URI;
use HTML::TreeBuilder::XPath;
-use HTML::Scrubber;
use Text::Xslate;
use Image::Resize;
@@ -155,23 +154,8 @@ sub get_content {
$image->attr('src', $file);
}
- my @default = (
- 1,
- {
- '*' => 1,
- 'onclick' => 0,
- },
- );
-
- my $scrubber = HTML::Scrubber->new(
- default => \@default,
- );
-
- my $content = $scrubber->scrub($tree->as_XML_indented);
- $tree->delete;
-
open my $out, '>', "out/$file" or die $!;
- print $out $content;
+ print $out $tree->as_XML;
close $out;
}
Please sign in to comment.
Something went wrong with that request. Please try again.