def strip_cdata(text):
    if not is_cdata(text):
        return text

    xml = "<e>{0}</e>".format(text)
    node = lxml.etree.fromstring(xml)
    return node.text
Removes all CDATA blocks from `text` if it contains them.
dataset/ETHPy150Open STIXProject/python-stix/stix/utils/__init__.py/strip_cdata