def strip_html(text):
    """ strip html code. """
    if text.startswith('http'):
        return text
    import bs4
    soup = bs4.BeautifulSoup(text, 'lxml')
    res = ''
    for chunk in soup.findAll(text=True):
        if isinstance(chunk, bs4.CData):
            res += str(chunk.content[0]) + ' '
        else:
            res += str(chunk) + ' '
    return res
