Permalink
Browse files

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

This reverts commit 8d4fec7.
  • Loading branch information...
1 parent 8d4fec7 commit a1f8ec3acb257eb611812ad28bb076fba7e9dd60 @mizzy committed Jan 22, 2012
Showing with 1 addition and 17 deletions.
  1. +1 −17 webiblo.pl
View
@@ -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;
}

0 comments on commit a1f8ec3

Please sign in to comment.