from bs4 import BeautifulSoup


def clean_data(data):
    """
    Strip HTML and clean spaces
    """
    data = BeautifulSoup(data, "lxml").text.strip()
    data = ' '.join(data.split()).encode("utf-8")
    return data