mirror of
https://github.com/python/cpython.git
synced 2025-10-25 18:54:53 +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 @@ def start_a(self, attrs):
|
|||
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