summaryrefslogtreecommitdiff
path: root/Lib/htmllib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-10-06 15:30:57 +0000
committerGuido van Rossum <guido@python.org>1995-10-06 15:30:57 +0000
commitec6a5091b6e0c9df3d7b92daff5983de1ebcbb5d (patch)
tree9a2a911d025c194ac9eb052d7dd0986acf836e87 /Lib/htmllib.py
parentaee5e0510317daf0880265de24c7f19c6d51f77f (diff)
downloadcpython-ec6a5091b6e0c9df3d7b92daff5983de1ebcbb5d.tar.gz
strip <A> attribute values
Diffstat (limited to 'Lib/htmllib.py')
-rw-r--r--Lib/htmllib.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/htmllib.py b/Lib/htmllib.py
index c5c6f09e8b..b689f9c26b 100644
--- a/Lib/htmllib.py
+++ b/Lib/htmllib.py
@@ -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':