diff options
author | Guido van Rossum <guido@python.org> | 1995-10-06 15:30:57 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-10-06 15:30:57 +0000 |
commit | ec6a5091b6e0c9df3d7b92daff5983de1ebcbb5d (patch) | |
tree | 9a2a911d025c194ac9eb052d7dd0986acf836e87 /Lib/htmllib.py | |
parent | aee5e0510317daf0880265de24c7f19c6d51f77f (diff) | |
download | cpython-ec6a5091b6e0c9df3d7b92daff5983de1ebcbb5d.tar.gz |
strip <A> attribute values
Diffstat (limited to 'Lib/htmllib.py')
-rw-r--r-- | Lib/htmllib.py | 1 |
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': |