danny0085 has asked for the wisdom of the Perl Monks concerning the following question:
I am using HTML::StripScripts::Parser:<ol id="intelliTxt" class="steps"> <li class="section"> <h2 class="header Heading3">Clear +Up Those Blackheads</h2> <ul> <li class="step "> <span clas +s="stepNumber">1</span> .. more code
But the output is:my $hss = HTML::StripScripts::Parser->new({ Context => 'Flow', BanList => [qw( h1 h2 )], Rules => { div => { class => 1, + }, ul => { class => 1, }, li => { class => 1, + }, ol => { class => 1, + },} }); print $hss->filter_html($HTML);
NO class attributes<ol> <li> <!--filtered-->Clear Up Those Blac +kheads<!--filtered--> <ul> <li> <span>1</s +pan>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help with HTML::StripScripts::Parser
by tobyink (Canon) on Aug 07, 2012 at 19:49 UTC | |
|
Re: Help with HTML::StripScripts::Parser
by ww (Archbishop) on Aug 07, 2012 at 20:15 UTC | |
by tobyink (Canon) on Aug 07, 2012 at 20:35 UTC | |
by danny0085 (Sexton) on Aug 07, 2012 at 20:45 UTC |