forked from sheetjs/sheetjs
SheetJS
7b6fb7b327
- read MSO HTML (fixes #419 h/t @vineetl fixes #458 h/t @tienne) - roll out xml namespace fix (closes #362 h/t @PierreOCXP) - cellDates clarifications
10 lines
408 B
JavaScript
10 lines
408 B
JavaScript
/* copied from js-xls (C) SheetJS Apache2 license */
|
|
function xlml_normalize(d)/*:string*/ {
|
|
if(has_buf &&/*::typeof Buffer !== "undefined" && d != null &&*/ Buffer.isBuffer(d)) return d.toString('utf8');
|
|
if(typeof d === 'string') return d;
|
|
throw "badf";
|
|
}
|
|
|
|
/* UOS uses CJK in tags, original regex /<(\/?)([a-z0-9]*:|)([\w-]+)[^>]*>/ */
|
|
var xlmlregex = /<(\/?)([^\s?>\/:]*:|)([^\s?>]*[^\s?>\/])[^>]*>/mg;
|