include full link tag in cleanSegment

This commit is contained in:
Graham Knop 2008-09-23 21:32:44 +00:00
parent d529da257d
commit 4fd276f0e5

View file

@ -67,7 +67,7 @@ sub cleanSegment {
if ($html =~ s{(.*)<body\b.*?>}{}is && $preserveStyleScript) {
my $head = $1;
# extract every link tag
while ( $head =~ m{(<link[^>]+)}isg ) {
while ( $head =~ m{(<link\b[^>]+>)}isg ) {
$headers .= $1;
}
# extract every script or style tag