Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bad end tag error #24

Closed
eadmaster opened this issue Oct 25, 2011 · 1 comment
Closed

bad end tag error #24

eadmaster opened this issue Oct 25, 2011 · 1 comment

Comments

@eadmaster
Copy link

> python html2text.py http://www.hardcoregaming101.net/
Traceback (most recent call last):
  File "C:\SharedPrograms\html2text\html2text.py", line 491, in <module>
    wrapwrite(html2text(data, baseurl))
  File "C:\SharedPrograms\html2text\html2text.py", line 450, in html2text
    return optwrap(html2text_file(html, None, baseurl))
  File "C:\SharedPrograms\html2text\html2text.py", line 445, in html2text_file
    h.feed(html)
  File "C:\PortableApps\Python\Python26\lib\HTMLParser.py", line 108, in feed
    self.goahead(0)
  File "C:\PortableApps\Python\Python26\lib\HTMLParser.py", line 150, in goahead
    k = self.parse_endtag(i)
  File "C:\PortableApps\Python\Python26\lib\HTMLParser.py", line 314, in parse_endtag
    self.error("bad end tag: %r" % (rawdata[i:j],))
  File "C:\PortableApps\Python\Python26\lib\HTMLParser.py", line 115, in error
    raise HTMLParseError(message, self.getpos())
HTMLParser.HTMLParseError: bad end tag: u'</a</p>', at line 416, column 113
@aaronsw
Copy link
Owner

aaronsw commented Oct 25, 2011

This is a bug in Python's HTMLParser. You should probably file it upstream instead:

http://bugs.python.org/

@aaronsw aaronsw closed this as completed Oct 25, 2011
pombredanne pushed a commit to pombredanne/html2text that referenced this issue Oct 10, 2015
Proper handling of anchors with content that starts with tags that
Fixes aaronsw#63 aaronsw#24

Thanks Ali Mohammad @alawibaba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants