import re


def clean_text(text):
    """
  Remove code blocks, urls, and html tags.
  """
    text = re.sub(r'<code[^>]*>(.+?)</code\s*>', '', text, flags=re.DOTALL | re.MULTILINE)
    text = re.sub(r'<div[^>]*>(.+?)</div\s*>', '', text, flags=re.DOTALL | re.MULTILINE)
    text = re.sub(r'<blockquote[^>]*>(.+?)</blockquote\s*>', '', text, flags=re.DOTALL | re.MULTILINE)
    text = re.sub('<.*?>', '', text)
    text = text.replace('&quot;', '"')
    text = re.sub(r'http\S+', '', text)
    text = re.sub(r'www.\S+', '', text)
    return text