def parse(cls, dom):
        """Converts DOM into paragraphs."""
        handler = cls()
        saxify(dom, handler)
        return handler.content
def parse ( cls , dom ) : handler = cls ( ) saxify ( dom , handler ) return handler . content
Converts DOM into paragraphs.