
Security News
OpenClaw Skill Marketplace Emerges as Active Malware Vector
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.
Given an html string it removes elements matching CSS selector(s) and returns the pruned html string.

Given an html string it removes elements matching CSS selector(s) and returns the pruned html string.
var pruneHtml = require('prune-html');
var html = [
'<div>'
, ' <h1 class="page-title">Global</h1>'
, ' <header>'
, ' <h2>Hello</h2>'
, ' </header>'
, ' <article>'
, ' <div class="container-overview">'
, ' <dl class="details"></dl>'
, ' </div>'
, ' <h3 class="subsection-title">Methods</h3>'
, ' </article>'
, '</div>'
].join('\n')
console.log(pruneHtml([ 'h1', '.details', 'h3' ], html));
/* =>
<div>
<header>
<h2>Hello</h2>
</header>
<article>
<div class="container-overview">
</div>
</article>
</div> */
npm install prune-html
/**
* Prunes all elements matching the selectors from the given html and returns result.
*
* @name pruneHtml
* @function
* @param {Array.<String>|String} selectors if one of these CSS selector(s) matches, the element is pruned
* @param {String} html unpruned
* @return {String} the pruned html
*/
MIT
FAQs
Given an html string it removes elements matching CSS selector(s) and returns the pruned html string.
The npm package prune-html receives a total of 5 weekly downloads. As such, prune-html popularity was classified as not popular.
We found that prune-html 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.

Security News
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.