diff --git a/scrapeit/djangohtml.py b/scrapeit/djangohtml.py
index 88fe5ec..3ecc8f2 100644
--- a/scrapeit/djangohtml.py
+++ b/scrapeit/djangohtml.py
@@ -71,7 +71,7 @@ def urlize(text, trim_url_limit=None, nofollow=False):
if middle.startswith('www.') or ('@' not in middle and not middle.startswith('http://') and \
len(middle) > 0 and middle[0] in string.letters + string.digits and \
(middle.endswith('.org') or middle.endswith('.net') or middle.endswith('.com'))):
- middle = '%s' % (middle, nofollow_attr, trim_url(anchor))
+ middle = '%s' % (middle, nofollow_attr, trim_url(middle))
if middle.startswith('http://') or middle.startswith('https://'):
middle = '%s' % (middle, nofollow_attr, trim_url(middle))
if '@' in middle and not middle.startswith('www.') and not ':' in middle \