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
Returns the tree item image index for an element.
dataset/ETHPy150Open STIXProject/python-stix/stix/utils/__init__.py/strip_cdata--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/viewer/tree_viewer.py/TreeViewer._get_image_index