import re


def extract_content(doc, content_xpath):
    """
    Arguments:
        :param doc: HTML content from the page.
        :param content_xpath: Identity of content in doc.

        :type doc: lxml.html.HtmlElement
        :type content_xpath: str

    Returns:
        :return: The news content.
        :rtype: str
    """

    content = doc.xpath(content_xpath)
    content = " ".join(content)
    content = re.sub("\s\s+", " ", content).strip()
    return content