Peter Kim wrote:
I'm using HTMLParser.py to parse XHTML and invalid tag is throwing an
exception. How do I handle this?
My understanding is that HTMLParser is not very forgiving of badly formed HTML. You might want to
look at alternatives. Here are a few:
http://www.crummy.com/software/BeautifulS
Peter Kim wrote:
I'm using HTMLParser.py to parse XHTML and invalid tag is throwing an
exception. How do I handle this?
1. Below is the faulty markup. Notice the missing >. Both Firefox
and IE6 correct automatically but HTMLParser is less forgiving. My
code has to be able to treat this graceful
I'm using HTMLParser.py to parse XHTML and invalid tag is throwing an
exception. How do I handle this?
1. Below is the faulty markup. Notice the missing >. Both Firefox
and IE6 correct automatically but HTMLParser is less forgiving. My
code has to be able to treat this gracefully because I don