npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-html-cleaner

v0.1.1

Published

Html Cleaner Node for n8n

Downloads

129

Readme

Banner image

n8n-nodes-html-cleaner

This is a custom n8n node that cleans HTML content by removing unwanted tags and attributes, making it easier to work with clean HTML data in your workflows.

Features

  • Remove specific HTML tags and attributes.
  • Clean HTML content to ensure it is free from unwanted elements.
  • Supports custom configurations for tag and attribute removal.
  • Converts cleaned HTML to Markdown format.
  • Easy to integrate into n8n workflows.

Installation

npm install n8n-nodes-html-cleaner

Usage

  1. Add the node to your n8n workflow.
  2. Configure the node by specifying the HTML content you want to clean.
  3. Set the tags and attributes you want to remove.
  4. Optionally, enable Markdown conversion if you want the output in Markdown format.
  5. Execute the workflow to see the cleaned HTML output.

Configuration

The HTML Cleaner node allows you to configure various options to customize the cleaning process. Here are the available configuration options:

  • HTML Content: The HTML input that you want to clean.
  • Excluded Attributes: A list of attributes to be removed from the HTML tags.
  • Excluded Selectors: A list of CSS selectors to target specific elements for removal.
  • Excluded Tags: A list of HTML tags to be removed from the content.
  • Remove Attributes: Option to remove all attributes from the HTML content.
  • Remove Comments: Option to remove comments from the HTML content.
  • Remove Empty Tags: Option to remove empty tags from the HTML content.
  • Remove Scripts: Option to remove script tags from the HTML content.
  • Remove Styles: Option to remove style tags from the HTML content.

Readability options:

  • Char Threshold: The number of characters an article must have in order to return a result. Defaults to 500.
  • Classes To Preserve: A list of classes to preserve on HTML elements when the keepClasses options is set to false.
  • Disable JSON-LD: Whether to disable JSON-LD extraction. when extracting page metadata, Readability gives precedence to Schema.org fields specified in the JSON-LD format. Set this option to true to skip JSON-LD parsing. Defaults to false.
  • Keep Classes: Whether to preserve all classes on HTML elements. When set to false only classes specified in the classesToPreserve array are kept. Defaults to false.
  • NB Top Candidates: The number of top candidates to consider when analysing how tight the competition is among candidates. Defaults to 5.

Markdown:

  • Markdown Output: Whether to convert the cleaned HTML content to Markdown format. Defaults to false.

Contributing

References

License

MIT