Socket
Socket
Sign inDemoInstall

advanced-html-parser

Package Overview
Dependencies
10
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.9 to 1.1.0

3

components/dom-parser.js

@@ -37,2 +37,3 @@ const enMap = {};

var expression = `<(body)(.*?)>(.|\n)*?<\/(body)>`;
console.log("Found onlyBody executing", expression)
var body = new RegExp(expression, "gmi").exec(source);

@@ -44,3 +45,3 @@ if (body && body.length != undefined && body.length > 0)

if (options.ignoreTags && options.ignoreTags.length > 0) {
var expression = `<(${options.ignoreTags.join("|")})(.*?)>(.|\n)*?<\/(${options.ignoreTags.join("|")})>`;
var expression = `(<(${options.ignoreTags.join("|")})(.*?)>(.|\n)*?<\/(${options.ignoreTags.join("|")})>)|(<(${options.ignoreTags.join("|")})(.*?)\/>)`;
console.log("Found ignoreTags executing", expression)

@@ -47,0 +48,0 @@ source = source.replace(new RegExp(expression, "gmi"), "");

{
"name": "advanced-html-parser",
"version": "1.0.9",
"version": "1.1.0",
"description": "Can use html parser in react-native, titanium, and anywhere. This is based on [xmldom](https://github.com/jindw/xmldom).",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc