strip <A> attribute values

This commit is contained in:
Guido van Rossum 1995-10-06 15:30:57 +00:00
parent 650ba37e1d
commit 84175bacd1
1 changed files with 1 additions and 0 deletions

View File

@ -322,6 +322,7 @@ class HTMLParser(SGMLParser):
name = ''
type = ''
for attrname, value in attrs:
value = string.strip(value)
if attrname == 'href':
href = value
if attrname == 'name':