Kaydet (Commit) 84175bac authored tarafından Guido van Rossum's avatar Guido van Rossum

strip <A> attribute values

üst 650ba37e
......@@ -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':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment