def test_simpleXHTMLRendering(self):
        f = Element(docFactory=xmlstr("<p>Hello, world.</p>"))
        return self._render(f).addCallback(
            self.assertEquals, "<p>Hello, world.</p>")
Truncate the text of an html5lib tree.
dataset/ETHPy150Open twisted/nevow/nevow/test/test_element.py/FlattenIntegrationTests.test_simpleXHTMLRendering--crossover with--dataset/ETHPy150Open mozilla/addons-server/src/olympia/translations/utils.py/trim