from bs4 import BeautifulSoup


def strip_html(html):
    """Returns the text only out of any potential HTML content."""
    if not html:
        return html

    soup = BeautifulSoup(html, "html5lib")
    return soup.text.strip()