Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^2: Help with HTML::StripScripts::Parser

by tobyink (Abbot)
on Aug 07, 2012 at 20:35 UTC ( #986076=note: print w/replies, xml ) Need Help??

in reply to Re: Help with HTML::StripScripts::Parser
in thread Help with HTML::StripScripts::Parser

"You can't have bare attributes."

I don't think the OP wanted to have bare attributes replacing the <h3> tag. I think the OP was concerned about the class attributes disappearing from the other elements, such as <ol>. That was my reading of the question anyway.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Replies are listed 'Best First'.
Re^3: Help with HTML::StripScripts::Parser
by danny0085 (Sexton) on Aug 07, 2012 at 20:45 UTC
    I found a solution maybe not the best but works
    $HTML =~ s/<h2[^)]*h2>//g;
    No more H2 tags and class attributes OK

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://986076]
[oakbox]: I don't think it was 'being thorough' so much as 'not wanting to look like a dunce'
[oakbox]: but thank you.
[marto]: anytime
[karlgoethebier]: good day

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2017-07-26 10:35 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (390 votes). Check out past polls.