Created
April 18, 2012 02:06
-
-
Save lachenmayer/2410572 to your computer and use it in GitHub Desktop.
BeautifulSoup bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Should not parse the script tag inside quotes in the JavaScript. | |
# Expected: BeautifulSoup object | |
# Actual: HTMLParser.HTMLParseError: bad end tag: u"</' + 'script>", at line 1, column 22 | |
from bs4 import BeautifulSoup | |
html = "<html><head><script>'</' + 'script>';</script></head><body></body></html>" | |
BeautifulSoup(html) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment