def METHOD_NAME(string):
    """
    Decode XML entities in the string.
    """
    entities = {
        "&quot;": "\"",
        "&apos;": "'",
    }
    if isinstance(string, bytes):
        return xml.sax.saxutils.unescape(string.decode("utf-8"), entities=entities).encode("utf-8")
    return xml.sax.saxutils.unescape(string, entities=entities)