Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

talk-message-forms

Package Overview
Dependencies
Maintainers
4
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

talk-message-forms - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

17

lib/util/format.js
(function() {
var myxss, truncate, xss;
var myxss, xss;
xss = require('xss');
truncate = require('html-truncate');
myxss = new xss.FilterXSS({
onTagAttr: function(tag) {
if (tag === 'img') {
return '';
}
}
whiteList: [],
stripIgnoreTag: true,
stripIgnoreTagBody: ['script']
});
exports.parseHtml = function(html) {
html = myxss.process(html).trim();
return truncate(html, 2000, {
ellipsis: '...'
});
return myxss.process(html).replace(/^\s+/gm, '').replace(/(?:\n+)+\n*/g, '\n').split('\n').slice(0, 5).join('\n');
};
}).call(this);
{
"name": "talk-message-forms",
"version": "1.1.1",
"version": "1.2.0",
"description": "The Message Structure and Layout of jianliao.com",

@@ -10,3 +10,2 @@ "main": "lib/index.js",

"highlight.js": "^8.7.0",
"html-truncate": "^1.2.1",
"lesshat": "^3.0.2",

@@ -13,0 +12,0 @@ "react": "^0.13.3",

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 not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc