# htacg/tidy-html5

The granddaddy of HTML tools, with support for modern standards

Repository: https://github.com/htacg/tidy-html5
Canonical: https://ross.abutalabs.com/products/tidy-html5
Homepage: http://www.html-tidy.org
Language: C
License Family: other
Last push: 2024-05-04T19:49:34+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5403, "days_push": 851, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2844, forks 437 (observed 2026-08-28T04:07:24.883508+00:00)

## What it is
HTML Tidy is a console application and C library (libtidy) that corrects and cleans up HTML and XML documents by fixing markup errors and upgrading legacy code to modern HTML5 standards. It can be used standalone or integrated into other applications via its thread-safe, easily wrapped C API.

## Use cases
- fix mismatched, misnested, or missing HTML tags in a document
- clean up and validate legacy HTML and convert it to modern standards
- tidy XML and XHTML documents from the command line
- integrate HTML correction into a web server, editor, or scraper via libtidy
- check HTML markup errors in a CI pipeline

## When to choose
- you need battle-tested HTML/XML cleanup and error correction
- you want a small C library to embed HTML tidying in another tool
- you work from the command line and want quick markup fixes

## When to avoid
- you need a full HTML parser/DOM for programmatic manipulation rather than cleanup
- you need a browser-grade HTML5 parser with scripting support
- you want a pure-JavaScript or managed-language solution without C linkage

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: parser, developer-tools, cli
- domain: web-development, developer-tools, files
- platform: windows, cross-platform, cli
- tags: html-tidy, html5, xml, markup-validation, libtidy, c-library, html-cleanup, linux, macos

## Member repositories
- htacg/tidy-html5 (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:24.883508+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:48:32.128308+00:00, confidence not recorded.
  - readme: https://github.com/htacg/tidy-html5 (fetched 2026-08-28T04:07:24.883508+00:00, sha 23d955a2a01f)
  - homepage: http://www.html-tidy.org (fetched 2026-08-29T09:52:42.423375+00:00, sha b51590aebb46)
  - site_page: https://www.html-tidy.org/documentation (fetched 2026-08-29T09:52:42.433107+00:00, sha 6e51dccca4c9)
  - site_page: https://www.html-tidy.org/developer (fetched 2026-08-29T09:52:42.435837+00:00, sha f9d619db07e1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
