'Makes sure that the html that is contained in the form field is valid'

@classmethod
def validate_form_html(cls, html):

    try:
        fields = cls.get_field_names_from_html(html)
    except Exception as ex:
        log.exception('Cannot    parse    SurveyForm    html:    {}'.format(ex))
        raise ValidationError('Cannot    parse    SurveyForm    as    HTML:    {}'.format(ex))
    if (not len(fields)):
        raise ValidationError('SurveyForms    must    contain    at    least    one    form    input    field')
