Description
PHP applications can clean, repair, and inspect HTML using the Tidy library. This is useful for form input cleanup, imported content, generated pages, and tools that normalize markup.
It is a PHP extension. Tidying HTML does not make untrusted markup safe by itself, so applications should still sanitize output before display.