def aloha_to_etree(html_source):
    """ Converts HTML5 from Aloha editor output to a lxml etree. """
    xml = _tidy2xhtml5(html_source)
    for i, transform in enumerate(ALOHA2HTML_TRANSFORM_PIPELINE):
        xml = transform(xml)
    return xml