🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

node-html-parser

Package Overview
Dependencies
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-html-parser - npm Package Compare versions

Comparing version
8.0.2
to
8.0.3
+7
-0
CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [8.0.3](https://github.com/taoqf/node-fast-html-parser/compare/v8.0.2...v8.0.3) (2026-06-22)
### Bug Fixes
* preserve consecutive backslashes in attribute values ([712ee25](https://github.com/taoqf/node-fast-html-parser/commit/712ee25a3e0974909b674873786a87b3030eb069)), closes [#306](https://github.com/taoqf/node-fast-html-parser/issues/306) [#62](https://github.com/taoqf/node-fast-html-parser/issues/62)
### [8.0.2](https://github.com/taoqf/node-fast-html-parser/compare/v8.0.1...v8.0.2) (2026-06-21)

@@ -7,0 +14,0 @@

+5
-5

@@ -105,7 +105,7 @@ "use strict";

}
return JSON.stringify(attr.replace(/"/g, '"'))
.replace(/([^\\])\\t/g, '$1\t')
.replace(/([^\\])\\n/g, '$1\n')
.replace(/([^\\])\\r/g, '$1\r')
.replace(/([^\\])\\/g, '$1');
// Attribute values are literal text: only the double quote needs
// escaping (as "). The previous JSON.stringify-based approach
// doubled backslashes and then failed to undo runs of consecutive
// backslashes, corrupting values such as "C:\\Users\\me".
return `"${attr.replace(/"/g, '"')}"`;
}

@@ -112,0 +112,0 @@ /**

{
"name": "node-html-parser",
"version": "8.0.2",
"version": "8.0.3",
"description": "A very fast HTML parser, generating a simplified DOM, with basic element query support.",

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

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