|
1 | 1 | /*! |
2 | | - * TableExport.js v3.2.15 (https://www.travismclarke.com) |
| 2 | + * TableExport.js 3.3.0 (https://www.travismclarke.com) |
3 | 3 | * Copyright 2016 Travis Clarke |
4 | 4 | * Licensed under the MIT license |
5 | 5 | */ |
6 | 6 |
|
7 | 7 | ;(function (root, factory) { |
8 | 8 | if (typeof define === 'function' && define.amd) { |
9 | 9 | // AMD. Register as an anonymous module. |
10 | | - define(['exports', 'jquery', 'file-saver', 'xlsx'], factory); |
| 10 | + define(['exports', 'jquery', 'blobjs', 'file-saver', 'xlsx'], factory); |
11 | 11 | } else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') { |
12 | 12 | // CommonJS |
13 | | - factory(exports, require('jquery'), require('file-saver'), require('xlsx')); |
| 13 | + factory(exports, require('jquery'), require('blobjs'), require('file-saver'), require('xlsx')); |
14 | 14 | } else { |
15 | 15 | // Browser globals |
16 | | - factory(root, root.jQuery, root.saveAs, root.XLSX); |
| 16 | + factory(root, root.jQuery, root.Blob, root.saveAs, root.XLSX); |
17 | 17 | } |
18 | | -}(this, function (exports, $, saveAs, XLSX) { |
| 18 | +}(this, function (exports, $, Blob, saveAs, XLSX) { |
19 | 19 | 'use strict'; |
20 | 20 | /** |
21 | 21 | * TableExport main plugin constructor |
|
187 | 187 | if ($(val).is(emptyCSS)) { |
188 | 188 | return " " |
189 | 189 | } |
190 | | - return $(val).text(); |
| 190 | + return '"' + $(val).text().replace(/"/g, '""') + '"'; |
191 | 191 | }).get().join(colD); |
192 | 192 | }).get().join(rdel), |
193 | 193 | dataObject = TableExport.prototype.escapeHtml( |
|
0 commit comments