def _parse_html_table(table):
    """Return list of lists with cell texts.

    :param table: beautifulsoup tag with table element
    """
    rows = table.findAll("tr")

    data = []
    for row in rows:

        tds = row.findAll("td")
        ths = row.findAll("th")

        if len(ths) > 0:
            tmp = [th.text.strip() for th in ths]
        else:
            tmp = [td.text.strip() for td in tds]

        data.append(tmp)

    return data