mirror of
https://github.com/python/cpython.git
synced 2025-08-27 20:25:18 +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 = ''
|
name = ''
|
||||||
type = ''
|
type = ''
|
||||||
for attrname, value in attrs:
|
for attrname, value in attrs:
|
||||||
|
value = string.strip(value)
|
||||||
if attrname == 'href':
|
if attrname == 'href':
|
||||||
href = value
|
href = value
|
||||||
if attrname == 'name':
|
if attrname == 'name':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue