http://www.perlmonks.org?node_id=986076


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'