Skip to content

Project in deno to clean an html file and extract only the body, remove all classes, ids, meta tags etc.

Notifications You must be signed in to change notification settings

anoop-jadhav-ui/htmlCleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML Cleaner

This project is a simple HTML cleaner built with Deno.

Features

  • Cleans and formats HTML files.
  • Removes unnecessary tags and attributes.
  • Minifies HTML for optimized performance.

Installation

To install the dependencies, run:

deno install --allow-read --allow-write https://deno.land/x/html_cleaner/cli.ts

Usage

To clean an HTML file, use the following command:

deno run --allow-read --allow-write main.ts <input-file> <output-file>

Example:

deno run --allow-read --allow-write main.ts input.html output.html

Build CLI

To create CLI file i.e. htmlParser

deno task build

Run cli -

Go to dist

./htmlCleaner ./blogs 

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

Project in deno to clean an html file and extract only the body, remove all classes, ids, meta tags etc.

Topics

Resources

Stars

Watchers

Forks