from bs4 import BeautifulSoup


def clean_html(html):
    """Clean the HTML."""
    soup = BeautifulSoup(html, features="html.parser")
    if body := soup.find("body"):
        return body.get_text(" ", strip=True)

    return html