
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
symbols-html-parser
Advanced tools
This is a simple HTML to Virtual Tree parser that can be used both in the CLI and the browser.
To parse an HTML file using the command line interface (CLI), run the following command:
node main.js <html-file-path>
node main.js <html-file-path>
To use the parser in the browser, follow these steps:
Include the html-to-vtree.js script in your HTML file:
<script src="html-to-vtree.js"></script>
Create a textarea element where users can input HTML:
<script src="html-to-vtree.js"></script>
const htmlString = '<div class="container">Hello, <b>world</b></div>';
const parser = new HtmlParser(htmlString);
const rootNode = parser.parseHtml();
// output
{
tag: 'div',
text: 'Hello, ',
class: 'container',
children: [
{tag: 'b', text: 'world'}
]
}
FAQs
Parse HTML to Object
The npm package symbols-html-parser receives a total of 3 weekly downloads. As such, symbols-html-parser popularity was classified as not popular.
We found that symbols-html-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.