summaryrefslogtreecommitdiff
path: root/beautifulsoup/element.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2011-02-22 22:57:39 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2011-02-22 22:57:39 -0500
commit7db58f67d60bf2675613e38d2d8daeeadc5522db (patch)
tree6cacead21b43bb5de23947a414c5d949c0d6c434 /beautifulsoup/element.py
parentf42fef27dc82ce97df0cb7b254595e6771461637 (diff)
parent6d7422139b7a60f48761f9a8ef52ed3de7393287 (diff)
Solved the question of how to decide between &apos; (XML) and &squot; (HTML) by cutting the Gordian knot: quote the *double* quotes, which are always &quot;.
Diffstat (limited to 'beautifulsoup/element.py')
-rw-r--r--beautifulsoup/element.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/beautifulsoup/element.py b/beautifulsoup/element.py
index 0ef9db1..23f8c33 100644
--- a/beautifulsoup/element.py
+++ b/beautifulsoup/element.py
@@ -582,8 +582,7 @@ class Tag(PageElement, EntitySubstitution):
and '%SOUP-ENCODING%' in val):
val = self.substituteEncoding(val, eventual_encoding)
- # XXX: Set destination_is_xml based on... something!
- decoded = key + '=' + self.substitute_xml(val, True, False)
+ decoded = key + '=' + self.substitute_xml(val, True)
attrs.append(decoded)
close = ''
closeTag = ''