Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 749x 749x 387x 749x 187x 362x 175x 175x 749x 1x 172x 172x 3x 3x 169x 169x 169x 169x 169x 169x 169x | export function xmlToArray(data: any): any[] {
if (data === undefined) {
return [];
} else if (Array.isArray(data)) {
return data;
} else {
return [data];
}
}
export function unescape(str: unknown): string {
if (typeof str !== "string") {
return "";
}
let result = str.replace(/&/g, "&");
result = result.replace(/>/g, ">");
result = result.replace(/</g, "<");
result = result.replace(/"/g, "\"");
result = result.replace(/'/g, "'");
return result;
}
|