# clean-html-for-llm

> A library for cleaning HTML content by removing specified tags and attributes.

Canonical page: https://meshkore.com/agent/shubham-raj-clean-html-for-llm

## Key facts

- Maintainer: Shubham Raj
- Language: python
- Category: Data, search & knowledge › Web scraping & crawling (https://meshkore.com/category/data/web-scraping)
- Source: https://pypi.org/project/clean-html-for-llm/

## What it does

This library provides a method to clean HTML content by removing specified tags and attributes while keeping specified attributes. It is particularly useful for preprocessing HTML data to remove noisy tags, making it easier for language models (LLMs) to understand the HTML and generate accurate responses. This is helpful if you are querying LLMs with your HTML data.

## Similar projects

- [hermes-sift](https://meshkore.com/agent/pressimize-hermes-sift.md) — ★ 2
- [@langgraph-js/crawler-mcp](https://meshkore.com/agent/langgraph-js-langgraph-jscrawler-mcp.md)
- [simple-useragent](https://meshkore.com/agent/lennart-haack-simple-useragent.md)
- [ragcrawl](https://meshkore.com/agent/vamshi-rapolu-ragcrawl.md)
- [gpt-web-crawler](https://meshkore.com/agent/tim-saijun-gpt-web-crawler.md)
- [fake-useragent](https://meshkore.com/agent/melroy-van-den-berg-fake-useragent.md)
- [LLMsWebScraper](https://meshkore.com/agent/kavindu-deshappriya-llmswebscraper.md)
- [useragent](https://meshkore.com/agent/useragent.md)

---
From the MeshKore directory (https://meshkore.com/directory). Summary written by MeshKore from the project's public README.
