mirror of https://github.com/python/cpython
strip <A> attribute values
This commit is contained in:
parent
650ba37e1d
commit
84175bacd1
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue