Merge pull request #70 from camper42/ignore_js_links

ignore javascript links
This commit is contained in:
2018-03-01 07:41:46 -05:00
committed by GitHub
+1 -1
View File
@@ -212,7 +212,7 @@ class BaseParser:
try:
href = link.attrs['href'].strip()
if href and not (href.startswith('#') and self.skip_anchors and href in ['javascript:;']):
if href and not (href.startswith('#') and self.skip_anchors) and not href.startswith('javascript:'):
yield href
except KeyError:
pass