UNPKG

@abaplint/core

Version:
27 lines 652 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.xmlToArray = xmlToArray; exports.unescape = unescape; function xmlToArray(data) { if (data === undefined) { return []; } else if (Array.isArray(data)) { return data; } else { return [data]; } } function unescape(str) { if (str === undefined) { return ""; } str = str.replace(/&amp;/g, "&"); str = str.replace(/&gt;/g, ">"); str = str.replace(/&lt;/g, "<"); str = str.replace(/&quot;/g, "\""); str = str.replace(/&apos;/g, "'"); return str; } //# sourceMappingURL=xml_utils.js.map