Subject: | self closing tags |
Date: | Thu, 15 Mar 2007 17:43:36 -0700 (PDT) |
To: | bug-HTML-Scrubber [...] rt.cpan.org |
From: | nabeel mohammed <nab83 [...] yahoo.com> |
Hi,
I am trying to use HTML::Scrubber to clean some script tags and get the
rest of the html. Here is an html fragment I am using:
<script src="www.google.com/script.js" />
<b> this is a line of bold </b>
<script type="text/javascript">
alert("hello")
</script>
<h> this is a line of bold </h>
And here is the perl code I am running:
my $scrubber = new HTML::Scrubber;
$scrubber->default(1);
my $scrubbed = $scrubber->scrub( $text );
print "$scrubbed";
All I see printed is
<h> this is a line of bold </h>
Now I might be missing something really obvious, but I can't for figure it
out.
Thanks
Nabeel
Show quoted text
____________________________________________________________________________________
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/