mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
strip <A> attribute values
This commit is contained in:
parent
650ba37e1d
commit
84175bacd1
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue