import re


def table_to_html(tbl):
    """
    Make an HTML representation of a table

    :param tbl: astropy Table
    :returns: str
    """
    out = tbl._base_repr_(html=True, max_width=-1,
                          show_dtype=False, descr_vals=[],
                          max_lines=-1, tableclass='table-striped')
    # Undo HTML sanitizing to allow raw HTML in table elements
    out = re.sub(r'&quot;', '"', out)
    out = re.sub(r'&lt;', '<', out)
    out = re.sub(r'&gt;', '>', out)

    return out