# htmlcleaner を Homebrew でインストール

htmlcleaner のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:htmlcleaner
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install htmlcleaner
```

  証拠: local Homebrew formula metadata

## パッケージ情報

- **パッケージキー:** brew:htmlcleaner
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/htmlcleaner>
- **バージョン:** 2.29
- **ソース概要:** HTML parser written in Java
- **ホームページ:** <https://htmlcleaner.sourceforge.net/>
- **上流ドキュメント:** <https://htmlcleaner.sourceforge.net/>
- **ライセンス:** BSD-3-Clause
- **ソースアーカイブ:** <https://downloads.sourceforge.net/project/htmlcleaner/htmlcleaner/htmlcleaner%20v2.29/htmlcleaner-src-2.29.zip>
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- htmlcleaner (cli)
- htmlcleaner (エイリアス)

## 依存関係

- openjdk

## ビルド依存関係

- maven

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 2.29
- ローカルデータ: OK
- 上流リポジトリ: https://htmlcleaner.sourceforge.net/
- 情報: No package-manager update timestamp was available.
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

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.

### タイムライン

- 2006: HtmlCleaner 0.8 was released as the initial public release.
- 2008: Version 2.0 was released.
- 2013: Version 2.4 marked a point where a maintained fork was merged back into the official project.
- 2015: Version 2.11 added stronger HTML5 support and stdin/stdout pipeline improvements.
- 2022: Version 2.26 updated JDOM to mitigate CVE-2021-33813.
- 2023: Version 2.29 fixed CVE-2023-34624 with nested-tag depth handling.

### Related projects

- Related Java and markup-cleanup projects include JTidy, jsoup, TagSoup, NekoHTML, and browser-grade HTML5 parsers. HtmlCleaner is distinct for combining cleanup output, Java embedding, and a command-line interface.

### ソース

- Maven Central metadata documents Java artifact identity, description, developers, and SCM tags.
- The SourceForge project site and release notes document origin, release dates, and later security-related changes.
- The download page documents the Subversion source repository and packaged source downloads.


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## ソースデータベース詳細

- **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:** stable


## 関連リンク

- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/ja/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [openjdk](https://pkg.so/ja/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [maven](https://pkg.so/ja/brew/maven/) - Build dependency declared by Homebrew.
- [libxml2](https://pkg.so/ja/brew/libxml2/) - Shares pkgdb curated category or tags: cli, developer-tools, html, parser, xml.
- [htmlcompressor](https://pkg.so/ja/brew/htmlcompressor/) - Shares pkgdb curated category or tags: cli, developer-tools, html, java, xml.
- [expat](https://pkg.so/ja/brew/expat/) - Shares pkgdb curated category or tags: cli, developer-tools, parser, xml.
- [ant](https://pkg.so/ja/brew/ant/) - Shares pkgdb curated category or tags: cli, developer-tools, java, xml.
- [urdfdom](https://pkg.so/ja/brew/urdfdom/) - Shares pkgdb curated category or tags: cli, developer-tools, parser, xml.
- [latexml](https://pkg.so/ja/brew/latexml/) - Shares pkgdb curated category or tags: cli, developer-tools, html, xml.
- [saxon](https://pkg.so/ja/brew/saxon/) - Shares pkgdb curated category or tags: cli, developer-tools, java, xml.
- [html-xml-utils](https://pkg.so/ja/brew/html-xml-utils/) - Shares pkgdb curated category or tags: cli, developer-tools, html, xml.
- [calabash](https://pkg.so/ja/brew/calabash/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, java, openjdk.

## Combined YAML source

View the package source record on GitHub. [combined/htmlcleaner.yml](https://github.com/mxcl/pkgdb/blob/main/combined/htmlcleaner.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
