From a0688e7a7a4736c4e9e629c96df017e068e2fc5c Mon Sep 17 00:00:00 2001 From: "zach%zachlipton.com" Date: Fri, 18 Nov 2005 02:27:11 +0000 Subject: [PATCH] Properly use HTML::StripScripts::Parser in the 'testdata' filter. --- webtools/litmus/Litmus/Template.pm | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/webtools/litmus/Litmus/Template.pm b/webtools/litmus/Litmus/Template.pm index c64fe60f6ad..3dea1e51b71 100755 --- a/webtools/litmus/Litmus/Template.pm +++ b/webtools/litmus/Litmus/Template.pm @@ -65,13 +65,14 @@ my %constants; $constants{litmus_version} = $Litmus::Config::version; # html tag stripper: -my $strip = HTML::StripScripts::Parser->new({ - Context => 'Inline', - AllowHref => 1, - BanAllBut => ['a', 'b', 'br', 'em', 'p', 'i', 'hr', - 'ul', 'ol', 'li'], - strict_names => 1, - }); +my $strip = HTML::StripScripts::Parser->new( + { + AllowHref => 1, + BanAllBut => ['a', 'b', 'br', 'em', 'p', 'i', 'hr', + 'ul', 'ol', 'li'], + }, + strict_names => 1, + ); ############################################################################### # Templatization Code