talk-message-forms
Advanced tools
Comparing version 1.0.11 to 1.0.12
(function() { | ||
var xss; | ||
xss = require('xss'); | ||
exports.htmlAsText = function(html) { | ||
var el; | ||
el = document.createElement('div'); | ||
el.innerHTML = html; | ||
return el.innerText || el.textContent; | ||
return xss(html, { | ||
whiteList: [], | ||
stripIgnoreTag: true, | ||
stripIgnoreTagBody: ['script'] | ||
}); | ||
}; | ||
}).call(this); |
{ | ||
"name": "talk-message-forms", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "The Message Structure and Layout of jianliao.com", | ||
@@ -17,3 +17,3 @@ "main": "lib/index.js", | ||
"teambition-icon-fonts": "^0.72.11", | ||
"xss": "^0.2.6" | ||
"xss": "^0.2.7" | ||
}, | ||
@@ -20,0 +20,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
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
51283
596
Updatedxss@^0.2.7