def htmlsafe_dumps(obj, **kwargs):
    rv = dumps(obj, **kwargs) \
        .replace(u'<', u'\\u003c') \
        .replace(u'>', u'\\u003e') \
        .replace(u'&', u'\\u0026') \
        .replace(u"'", u'\\u0027')
    if not _slash_escape:
        rv = rv.replace('\\/', '/')
    return rv
Tests the GetParentFileEntry function.
dataset/ETHPy150Open pallets/flask/flask/json.py/htmlsafe_dumps--crossover with--dataset/ETHPy150Open log2timeline/dfvfs/tests/vfs/tsk_partition_file_entry.py/TSKPartitionFileEntryTest.testGetParentFileEntry