import re


def extract_text(json_dict):
    """
    Pull out the raw text from the dictionary and remove newlines
    :param json_dict:
    :return:
    """
    text = ' '.join([json_dict['title'], json_dict['content']]).strip()
    text = re.sub(r"\s+", ' ', text)
    return text