Comparing version 1.5.1 to 1.6.0
@@ -10,2 +10,3 @@ /** | ||
var colCache = require('../utils/col-cache'); | ||
var _ = require('../utils/under-dash'); | ||
var Enums = require('./enums'); | ||
@@ -206,2 +207,5 @@ | ||
}, | ||
get html() { | ||
return _.escapeHtml(this.text); | ||
}, | ||
toString: function toString() { | ||
@@ -208,0 +212,0 @@ return this.text; |
@@ -82,2 +82,6 @@ 'use strict'; | ||
} | ||
}, | ||
escapeHtml: function escapeHtml(html) { | ||
return html.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"); | ||
} | ||
@@ -84,0 +88,0 @@ }; |
{ | ||
"name": "exceljs", | ||
"version": "1.5.1", | ||
"version": "1.6.0", | ||
"description": "Excel Workbook Manager - Read and Write xlsx and csv Files.", | ||
@@ -5,0 +5,0 @@ "private": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3212341
53472
1858