macOS
brew install htmlcleanerlocal Homebrew formula metadata
brew
HTML parser written in Java. Version 2.29 via Homebrew; verified from local package data.
install
brew install htmlcleanerlocal Homebrew formula metadata
overview
HTML parser written in Java
history
HtmlCleaner is a Java HTML parser and cleanup library that turns imperfect web HTML into well-formed XML-like output using browser-like repair rules. It has a command-line interface, Java API, Ant integration, and published Maven artifacts.
The project site says HtmlCleaner has been fixing shoddy HTML since 2006, and its release notes list an initial 0.8 release on November 27, 2006. The release stream moved quickly through 1.x in 2006 and 2007, reached 2.0 in 2008, and continued with 2.x maintenance for many years.
Later releases show the project adapting to web and Java ecosystem changes: the 2015 line included HTML5 support work, 2022 updated JDOM to mitigate CVE-2021-33813, 2023 targeted JDK 1.8, and 2.29 added a maximum nested-tag depth after CVE-2023-34624.
HtmlCleaner's Maven coordinates and SourceForge downloads made it easy to embed in Java applications and build tools. Maven Central metadata describes the library as a Java parser that transforms dirty HTML to well-formed XML following browser rules, and the Homebrew formula exposes its command-line runner for shell users.
The project documents command-line use for cleaning files and Java use for embedding the cleaner in applications. Its niche is older but durable: converting real-world HTML into a structure that XML tooling, Java code, or test fixtures can consume.
HtmlCleaner matters to package nerds because it represents the pre-HTML5-parser era of pragmatic cleanup libraries: SourceForge hosting, Ant-era Java integration, Maven artifacts, and a CLI wrapper all in one long-lived parser package.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
htmlcleaner | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://htmlcleaner.sourceforge.net/
install metadata
| Package key | brew:htmlcleaner |
|---|---|
| Version | 2.29 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/htmlcleaner |
| Homepage | https://htmlcleaner.sourceforge.net/ |
| Repository | https://svn.code.sf.net/p/htmlcleaner/code/trunk |
| Upstream docs | https://htmlcleaner.sourceforge.net/ |
| License | BSD-3-Clause |
| Source archive | https://downloads.sourceforge.net/project/htmlcleaner/htmlcleaner/htmlcleaner%20v2.29/htmlcleaner-src-2.29.zip |
| Dependencies | openjdk |
| Build dependencies | maven |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | htmlcleaner |
| Version Scheme | 0 |
| Revision | 1 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.