''

def _clean_html_tags(self, html_to_clean):

    html_soup_cleaner = BeautifulSoup(html_to_clean, 'html.parser')
    for tag in html_soup_cleaner.find_all('div', {'class': 'highlight-default'}):
        tag.name = 'pre'
        del tag.attrs
        tag.next_element.name = 'code'
        del tag.next_element.attrs
        tag.next_element.next_element.name = 'span'
    tags_to_replace = ['code', 'span', 'div', 'blockquote']
    for tag_to_replace in tags_to_replace:
        regex_pattern = '^{}*'.format(tag_to_replace)
        for tag in html_soup_cleaner.find_all(re.compile(regex_pattern)):
            del tag.name
            if tag.attrs:
                del tag.attrs
    for tag in html_soup_cleaner.find_all('a'):
        if tag.attrs:
            del tag.name
            del tag.attrs
    for tag in html_soup_cleaner.find_all('ul'):
        if tag.attrs:
            del tag.attrs
    for tag in html_soup_cleaner.find_all('cite'):
        tag.name = 'code'
    cleaned_html = str(html_soup_cleaner)
    cleaned_html = cleaned_html.replace('<None>', '')
    cleaned_html = cleaned_html.replace('</None>', '')
    cleaned_html = cleaned_html.replace('\n', '\\n').strip('\\n    ')
    return cleaned_html
