def render_field_errors(field):
    """
    Render field errors as html.
    """
    if field.errors:
        html = """<p class="help-block">Error: {errors}</p>""".format(
            errors='. '.join(field.errors)
        )
        return HTMLString(html)

    return None
Render field errors as html.