def cdata(text):
    if not text:
        return text

    if is_cdata(text):
        text = strip_cdata(text)

    escaped = "{0}{1}{2}".format(CDATA_START, text, CDATA_END)
    return escaped
Test rendering to a DOM with options.
dataset/ETHPy150Open STIXProject/python-stix/stix/utils/__init__.py/cdata--crossover with--dataset/ETHPy150Open ralphm/wokkel/wokkel/test/test_data_form.py/FieldTest.test_toElementDescription