def extract_from_cdata(string):
    """Extract the value out of an XML CDATA section.

    See https://en.wikipedia.org/wiki/CDATA#CDATA_sections_in_XML.

    """
    tmp = string.lstrip('<![CDATA[')
    tmp = tmp.rstrip(']]>')
    return tmp
