function decodeStrict(data, level) {
    return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTMLStrict)(data);
}
Decodes a string with entities. Does not allow missing trailing semicolons for entities.

@param data String to decode.
@param level Optional level to decode at. 0 = XML, 1 = HTML. Default is 0.
@deprecated Use `decodeHTMLStrict` or `decodeXML` directly.