'Return the html for this input, as an etree element.'

def get_html(self):

    if (self.template is None):
        raise NotImplementedError('no    rendering    template    specified    for    class    {0}'.format(self.__class__))
    context = self._get_render_context()
    html = self.capa_system.render_template(self.template, context).strip()
    try:
        output = etree.XML(html)
    except etree.XMLSyntaxError as ex:
        try:
            output = html5lib.parseFragment(html, treebuilder='lxml', namespaceHTMLElements=False)[0]
        except IndexError:
            raise ex
    return output
