Re: Parser - thingy problem
efrazier@home.com
Sun, 04 Jul 1999 19:49:27 -0400
Hi,
I most definatly don't have everthing solved yet. But It seems to work for
most kinds of HTML style. goto
http://www.kwinternet.com/eric/scripts/sendme/ if you want to take a look at
what I ended up with. This sends an HTML page as HTML or as plain text.
Thanks for all of the help from the list.
Eric
At 05:46 PM 6/23/99 +0900, you wrote:
>On Tue, Jun 22, 1999 at 11:27:35PM -0400, Winter Wong wrote:
>> what about:
>>
>> $content = $res->content;
>> $content =~ s/<([^\0]*?)>//g;
>>
>> ?? :)
>Because it will not do what you expect on things like:
>
> <img src="formular.gif" alt="f(i)>=x">
> <!-- notice the ">" charachter inside the quotes -->
> <!-- and notice the ">" character inside the comment as well -->
>
>or this:
>
> <!-- Here I commented out some unused elements
>
> <OL>
> <LI>One
> <LI>Two
> </OL>
>
> -->
>
>[sorry, this isn't really libwww-perl relevant]
>--
>Marc Langheinrich
>marclang@cs.washington.edu
>