function decode(data, options = EntityLevel.XML) {
    const opts = typeof options === "number" ? { level: options } : options;
    if (opts.level === EntityLevel.HTML) {
        if (opts.mode === DecodingMode.Strict) {
            return decodeHTMLStrict(data);
        }
        return decodeHTML(data);
    }
    return decodeXML(data);
}
/**
 * Decodes a string with entities.
 *
 * @param data String to decode.
 * @param options Decoding options.
 */
Decodes a string with entities.
@param data String to decode.
@param options Decoding options.
Decodes a string with entities . @param data String to decode . @param options Decoding options .
function decode(data, options = EntityLevel.XML) {
    const opts = typeof options === "number" ? { level: options } : options;
    if (opts.level === EntityLevel.HTML) {
        if (opts.mode === DecodingMode.Strict) {
            return decodeHTMLStrict(data);
        }
        return decodeHTML(data);
    }
    return decodeXML(data);
}
function decode ( data , options = EntityLevel . XML ) { const opts = typeof options === "number" ? { level : options } : options ; if ( opts . level === EntityLevel . HTML ) { if ( opts . mode === DecodingMode . Strict ) { return decodeHTMLStrict ( data ) ; } return decodeHTML ( data ) ; } return decodeXML ( data ) ; }
Decodes a string with entities.
Decodes a string with entities .