def test_textEntitiesDecoded(self):
        """
        Minidom does decode entities in text nodes.
        """
        doc5_xml = '<x>Souffl&amp;</x>'
        doc5 = self.dom.parseString(doc5_xml)
        actual = domhelpers.gatherTextNodes(doc5)
        expected = 'Souffl&'
        self.assertEqual(actual, expected)
        actual = domhelpers.gatherTextNodes(doc5.documentElement)
        self.assertEqual(actual, expected)

        Minidom does decode entities in text nodes.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_domhelpers.py