Registry / serialization / jtidy
libraryr938javamavenunverified

JTidy is a Java port of HTML Tidy, a HTML syntax checker and pretty printer that can clean up malformed HTML and provide a DOM interface.

<dependency> <groupId>net.sf.jtidy</groupId> <artifactId>jtidy</artifactId> <version>r938</version> </dependency>
INSTALL
IMPORT
SIG · JTIDY
J
jtidy
serializationjavavr938
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Tidy
org.w3c.tidy.Tidy

Parses and cleans up malformed HTML, outputting XHTML.

import org.w3c.tidy.Tidy; import java.io.ByteArrayInputStream; public class Quickstart { public static void main(String[] args) { Tidy tidy = new Tidy(); tidy.setXHTML(true); tidy.parse(new ByteArrayInputStream("<html><body><p>Test</html>".getBytes()), System.out); } }
Debug
Known issues
gotchaJTidy may not handle modern HTML5 elements correctly.
fix
Consider using a more modern HTML parser like jsoup for HTML5 compliance.
affects: all
Upgrade
Version history
r938latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Resources
jtidy — mvn dependency:get jtidy · libregistry