New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tm-content-parser

Package Overview
Dependencies
Maintainers
10
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tm-content-parser - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12-SNAPSHOT-2

2

index.js

@@ -245,3 +245,3 @@ "use strict";

'font', 'h1', 'h2', 'h3', 'h4',
'h5', 'h6', 'i', 'p', 'small',
'h5', 'h6', 'i', 'p', 'small', 'span',
'strike', 'strong', 'sub', 'sup', 'tt',

@@ -248,0 +248,0 @@ 'u', 'ul', 'ol', 'li'

{
"name": "tm-content-parser",
"version": "1.0.11",
"version": "1.0.12-SNAPSHOT-2",
"description": "Trinity Mirror Content Type Parser",

@@ -9,2 +9,3 @@ "main": "index.js",

"test": "istanbul cover _mocha -- -R spec --recursive test/",
"test:watch": "nodemon --exec yarn test",
"pretest": "npm run lint",

@@ -11,0 +12,0 @@ "posttest": "npm outdated -l || true",

@@ -285,2 +285,10 @@ "use strict";

});
});
describe('AB-564 formatHtml() with span', () => {
const formatHtml = contentTypeParser.__get__('formatHtml ');
it('should return type text when html has span element inside', () => {
const html2 = '\n<h3> <span>Khan versus Cummings</span> </h3> \n';
formatHtml(html2).should.deepEqual({ type: 'text', body: '<h3> <span>Khan versus Cummings</span> </h3>' });
});
});
});

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