diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-22 22:56:09 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-22 22:56:09 -0500 |
commit | 6d7422139b7a60f48761f9a8ef52ed3de7393287 (patch) | |
tree | 6cacead21b43bb5de23947a414c5d949c0d6c434 /tests/test_lxml.py | |
parent | 1c32da9882d056fee65d8c2aa44ecacfc21eb758 (diff) |
Solved the question of how to decide between ' (XML) and &squot; (HTML) by cutting the Gordian knot: quote the *double* quotes, which are always ".
Diffstat (limited to 'tests/test_lxml.py')
-rw-r--r-- | tests/test_lxml.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_lxml.py b/tests/test_lxml.py index df2f341..8f3d798 100644 --- a/tests/test_lxml.py +++ b/tests/test_lxml.py @@ -125,7 +125,7 @@ class TestLXMLBuilder(SoupTest): soup.foo['attr'] = 'Brawls happen at "Bob\'s Bar"' self.assertSoupEquals( soup.foo.decode(), - """<foo attr='Brawls happen at "Bob&squot;s Bar"'>a</foo>""") + """<foo attr="Brawls happen at "Bob\'s Bar"">a</foo>""") def test_ampersand_in_attribute_value_gets_quoted(self): self.assertSoupEquals('<this is="really messed up & stuff"></this>', |