Re: HTML:Parser how to remove "//<![CDATA[ ... //]]>" ?



On Jan 31, 12:01 pm, "Gerwin" <g.h.vando...@xxxxxxxxx> wrote:
Hi,

I'm using HTML::Parser to strip HTML tags from my files. I noticed
how //<![cdata[ ... //]]> and the javascript between that is not
stripped. Any idea how to do this?

-Gerwin

Well i made a regex to do it:

$content =~ s/(\/\/<!\[.*\/\/]]>)//;

Is this efficient? If not, what is?

.