From 6d7422139b7a60f48761f9a8ef52ed3de7393287 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Tue, 22 Feb 2011 22:56:09 -0500 Subject: Solved the question of how to decide between ' (XML) and &squot; (HTML) by cutting the Gordian knot: quote the *double* quotes, which are always ". --- tests/test_lxml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_lxml.py') 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(), - """a""") + """a""") def test_ampersand_in_attribute_value_gets_quoted(self): self.assertSoupEquals('', -- cgit v1.2.3