good chemistry is complicated,
and a little bit messy -LW
Stripping of HTML contentby Nemp (Pilgrim)
|on Sep 12, 2002 at 15:49 UTC||Need Help??|
Nemp has asked for the wisdom of the Perl Monks concerning the following question:
I have some input, let's call it @webpage_lines and I want to strip all of the HTML tags from it with as little effort as possible. (remembering of course that laziness is a programmer's virtue)
Relevant facts are;
Remembering that simplicity and size are paramount...
Should I be looking at some kind of HTML parser instead?
Is this an exremely slow solution because the size $page could become?
Is this code sufficient?
Any other thoughts about this problem?
Thanks for your input!