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

htmljs-parser

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

htmljs-parser - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

15

notify-util.js
var CODE_NEWLINE = 10;
function _removeDelimitersFromArguments(args) {
var i = args.length;
while(--i >= 0) {
var arg = args[i];
args[i] = arg.substring(1, arg.length - 1);
}
}
exports.createNotifiers = function(parser, listeners) {

@@ -50,2 +58,5 @@ return {

if (listeners.onopentag) {
if (elementArguments) {
_removeDelimitersFromArguments(elementArguments);
}

@@ -62,2 +73,6 @@ // set the staticText property for attributes that are simple

if (attr.arguments) {
_removeDelimitersFromArguments(attr.arguments);
}
delete attr.possibleStaticText;

@@ -64,0 +79,0 @@ }

72

package.json
{
"name": "htmljs-parser",
"description": "An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values",
"keywords": [
"HTML",
"parser",
"JavaScript",
"expressions",
"browser",
"server",
"nodejs",
"template",
"compiler"
],
"main": "index.js",
"scripts": {
"test": "node_modules/.bin/mocha --ui bdd --reporter spec ./test"
},
"repository": {
"type": "git",
"url": "https://github.com/philidem/htmljs-parser.git"
},
"author": "Phillip Gates-Idem <phillip.idem@gmail.com>",
"maintainers": "Phillip Gates-Idem <phillip.idem@gmail.com>",
"dependencies": {},
"devDependencies": {
"chai": "^3.2.0",
"colors": "^1.1.2",
"jshint": "^2.8.0",
"mocha": "^2.3.0"
},
"license": "MIT",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"version": "1.0.0"
}
"name": "htmljs-parser",
"description": "An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values",
"keywords": [
"HTML",
"parser",
"JavaScript",
"expressions",
"browser",
"server",
"nodejs",
"template",
"compiler"
],
"main": "index.js",
"scripts": {
"test": "node_modules/.bin/mocha --ui bdd --reporter spec ./test"
},
"repository": {
"type": "git",
"url": "https://github.com/philidem/htmljs-parser.git"
},
"author": "Phillip Gates-Idem <phillip.idem@gmail.com>",
"maintainers": "Phillip Gates-Idem <phillip.idem@gmail.com>",
"dependencies": {},
"devDependencies": {
"chai": "^3.2.0",
"colors": "^1.1.2",
"jshint": "^2.8.0",
"mocha": "^2.3.0"
},
"license": "MIT",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"version": "1.0.1"
}

@@ -251,3 +251,3 @@ htmljs-parser

arguments: [
'(var i = 0; i < 10; i++)'
'var i = 0; i < 10; i++'
],

@@ -276,3 +276,3 @@ attributes: []

arguments: [
'(x > y)'
'x > y'
]

@@ -279,0 +279,0 @@ }

@@ -1169,3 +1169,3 @@ var chai = require('chai');

arguments: [
'(x in y)'
'x in y'
],

@@ -1185,3 +1185,3 @@ attributes: []

arguments: [
'(x in y)'
'x in y'
],

@@ -1201,3 +1201,3 @@ attributes: []

arguments: [
'(x in ["Hello "+(name)+"!", "(World)"])'
'x in ["Hello "+(name)+"!", "(World)"]'
],

@@ -1220,3 +1220,3 @@ attributes: []

arguments: [
'(x > y)'
'x > y'
]

@@ -1240,3 +1240,3 @@ }

arguments: [
'(x > y)'
'x > y'
]

@@ -1257,3 +1257,3 @@ }

arguments: [
'(var i = 0; i < 10; i++)'
'var i = 0; i < 10; i++'
],

@@ -1264,3 +1264,3 @@ attributes: [

arguments: [
'(x > y)'
'x > y'
]

@@ -1267,0 +1267,0 @@ }

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