function decodeStrict(data, options = EntityLevel.XML) {
    const opts = typeof options === "number" ? { level: options } : options;
    if (opts.level === EntityLevel.HTML) {
        if (opts.mode === DecodingMode.Legacy) {
            return decodeHTML(data);
        }
        return decodeHTMLStrict(data);
    }
    return decodeXML(data);
}
/**
 * Decodes a string with entities. Does not allow missing trailing semicolons for entities.
 *
 * @param data String to decode.
 * @param options Decoding options.
 * @deprecated Use `decode` with the `mode` set to `Strict`.
 */
Decodes a string with entities. Does not allow missing trailing semicolons for entities.
@param data String to decode.
@param options Decoding options.
Decodes a string with entities . Does not allow missing trailing semicolons for entities . @param data String to decode . @param options Decoding options .
function decodeStrict(data, options = EntityLevel.XML) {
    const opts = typeof options === "number" ? { level: options } : options;
    if (opts.level === EntityLevel.HTML) {
        if (opts.mode === DecodingMode.Legacy) {
            return decodeHTML(data);
        }
        return decodeHTMLStrict(data);
    }
    return decodeXML(data);
}
function decodeStrict ( data , options = EntityLevel . XML ) { const opts = typeof options === "number" ? { level : options } : options ; if ( opts . level === EntityLevel . HTML ) { if ( opts . mode === DecodingMode . Legacy ) { return decodeHTML ( data ) ; } return decodeHTMLStrict ( data ) ; } return decodeXML ( data ) ; }
Decodes a string with entities.
Decodes a string with entities .