advanced-html-parser
Advanced tools
Comparing version 1.0.9 to 1.1.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
428909
7983