diff --git a/requests_html.py b/requests_html.py
index 70cbb61..a2e7b93 100644
--- a/requests_html.py
+++ b/requests_html.py
@@ -120,7 +120,7 @@ class BaseParser:
for link in self.find('a'):
try:
- href = link.attrs['href']
+ href = link.attrs['href'].strip()
if not href.startswith('#') and self.skip_anchors and href not in ['javascript:;']:
yield href
except KeyError: