Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 84175ba

Browse files
committed
strip <A> attribute values
1 parent 650ba37 commit 84175ba

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/htmllib.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ def start_a(self, attrs):
322322
name = ''
323323
type = ''
324324
for attrname, value in attrs:
325+
value = string.strip(value)
325326
if attrname == 'href':
326327
href = value
327328
if attrname == 'name':

0 commit comments

Comments
 (0)