Socket
Socket
Sign inDemoInstall

htmlparser2

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

htmlparser2 - npm Package Compare versions

Comparing version 3.0.4 to 3.0.5

8

lib/Parser.js

@@ -173,3 +173,5 @@ var Tokenizer = require("./Tokenizer.js");

if(this._cbs.onprocessinginstruction){
this._cbs.onprocessinginstruction("!" + value.split(/\s|\//, 1)[0], "!" + value);
var name = value.split(/\s|\//, 1)[0];
if(this._options.lowerCaseTags) name = name.toLowerCase();
this._cbs.onprocessinginstruction("!" + name, "!" + value);
}

@@ -180,3 +182,5 @@ };

if(this._cbs.onprocessinginstruction){
this._cbs.onprocessinginstruction("?" + value.split(/\s|\//, 1)[0], "?" + value);
var name = value.split(/\s|\//, 1)[0];
if(this._options.lowerCaseTags) name = name.toLowerCase();
this._cbs.onprocessinginstruction("?" + name, "?" + value);
}

@@ -183,0 +187,0 @@ };

{
"name": "htmlparser2",
"description": "Performance-optimized forgiving HTML/XML/RSS parser",
"version": "3.0.4",
"description": "Fast & forgiving HTML/XML/RSS parser",
"version": "3.0.5",
"author": "Felix Boehm <me@feedic.com>",

@@ -6,0 +6,0 @@ "keywords": ["html", "parser", "streams", "xml", "dom", "rss", "feed", "atom"],

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