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

posthtml-parser

Package Overview
Dependencies
Maintainers
3
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

posthtml-parser - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

8

index.js
'use strict';
var htmlparser = require('htmlparser2');
var Parser = require('htmlparser2/lib/Parser');
var isObject = require('isobject');

@@ -29,3 +29,3 @@ var objectAssign = require('object-assign');

function parserDirective(name, data) {
var directives = options.directives || defaultDirectives;
var directives = objectAssign(defaultDirectives, options.directives);
var last = bufArray.last();

@@ -60,3 +60,3 @@

var parser = new htmlparser.Parser({
var parser = new Parser({
onprocessinginstruction: parserDirective,

@@ -121,3 +121,3 @@ oncomment: function(data) {

function parser(html) {
var opt = option || defaultOptions;
var opt = objectAssign(defaultOptions, option);
return postHTMLParser(html, opt);

@@ -124,0 +124,0 @@ }

{
"name": "posthtml-parser",
"version": "0.3.1",
"version": "0.3.2",
"description": "Parse HTML/XML to PostHTMLTree",

@@ -5,0 +5,0 @@ "keywords": [

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