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

html-parser

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-parser - npm Package Compare versions

Comparing version 0.6.2 to 0.6.3

2

package.json
{
"name": "html-parser",
"version": "0.6.2",
"version": "0.6.3",
"description": "HTML/XML parser with less explosions",

@@ -5,0 +5,0 @@ "keywords": [ "html", "xml", "parser", "explosion" ],

@@ -354,3 +354,6 @@ var parseContext = require('./context');

sanitized += ' ' + name + '="' + value.replace(/"/g, '"') + '"';
sanitized += ' ' + name;
if (value) {
sanitized += '="' + value.replace(/"/g, '"') + '"';
}
},

@@ -357,0 +360,0 @@

@@ -112,2 +112,10 @@ var should = require('should');

});
it('should handle attributes with no value', function() {
var html = '<p novalue1 novalue2>foo</p>';
var sanitized = helpers.parser.sanitize(html, {
attributes: [ 'novalue1' ]
});
sanitized.should.equal('<p novalue2>foo</p>');
});
});

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