in reply to Strip HTML tags again
What this is doing is finding text contained in <>'s that has a corresponding ending tag.
Here is the code ($l is the scalar holding the line of text):
if( $l =~ /<.*?>(.*?)<\/.*?>/ ) { $l = $1; }
-----------------------------------
Frank Wiles <frank@wiles.org>
http://frank.wiles.org
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Strip HTML tags again
by dda (Friar) on Jun 30, 2002 at 16:03 UTC |