Re: HTML:Parser how to remove "//<![CDATA[ ... //]]>" ?
- From: "Gerwin" <g.h.vandoorn@xxxxxxxxx>
- Date: 31 Jan 2007 03:11:48 -0800
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?
.
- Follow-Ups:
- Re: HTML:Parser how to remove "//<![CDATA[ ... //]]>" ?
- From: anno4000
- Re: HTML:Parser how to remove "//<![CDATA[ ... //]]>" ?
- References:
- HTML:Parser how to remove "//<![CDATA[ ... //]]>" ?
- From: Gerwin
- HTML:Parser how to remove "//<![CDATA[ ... //]]>" ?
- Prev by Date: HTML:Parser how to remove "//<![CDATA[ ... //]]>" ?
- Next by Date: Re: How to start some file as Perl script argument?
- Previous by thread: HTML:Parser how to remove "//<![CDATA[ ... //]]>" ?
- Next by thread: Re: HTML:Parser how to remove "//<![CDATA[ ... //]]>" ?
- Index(es):