from bs4 import BeautifulSoup


def remove_html_tags(text):
    """
    Method used to remove the occurrences of html tags from the text

    Parameters:
    -----------------
        text (string): Text to clean

    Returns:
    -----------------
        text (string): Text after removing html tags.

    """

    # Initiating BeautifulSoup object soup
    soup = BeautifulSoup(text, "html.parser")

    # Get all the text other than html tags.
    text = soup.get_text(separator=" ")

    return text