JTidy

JTidy is a Java port of HTML Tidy, a HTML syntax checker and pretty printer. Like its non-Java cousin, JTidy can be used as a tool for cleaning up malformed and faulty HTML. In addition, JTidy provides a DOM interface to the document that is being processed, which effectively makes you able to use JTidy as a DOM parser for real-world HTML.

License

License

GroupId

GroupId

com.github.jtidy
ArtifactId

ArtifactId

jtidy
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

JTidy
JTidy is a Java port of HTML Tidy, a HTML syntax checker and pretty printer. Like its non-Java cousin, JTidy can be used as a tool for cleaning up malformed and faulty HTML. In addition, JTidy provides a DOM interface to the document that is being processed, which effectively makes you able to use JTidy as a DOM parser for real-world HTML.
Project URL

Project URL

https://github.com/jtidy/jtidy
Project Organization

Project Organization

jtidy
Source Code Management

Source Code Management

https://github.com/jtidy/jtidy

Download jtidy

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.jtidy/jtidy/ -->
<dependency>
    <groupId>com.github.jtidy</groupId>
    <artifactId>jtidy</artifactId>
    <version>1.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.jtidy/jtidy/
implementation 'com.github.jtidy:jtidy:1.0.2'
// https://jarcasting.com/artifacts/com.github.jtidy/jtidy/
implementation ("com.github.jtidy:jtidy:1.0.2")
'com.github.jtidy:jtidy:jar:1.0.2'
<dependency org="com.github.jtidy" name="jtidy" rev="1.0.2">
  <artifact name="jtidy" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.jtidy', module='jtidy', version='1.0.2')
)
libraryDependencies += "com.github.jtidy" % "jtidy" % "1.0.2"
[com.github.jtidy/jtidy "1.0.2"]

Dependencies

compile (2)

Group / Artifact Type Version
xerces : xercesImpl jar 2.11.0
org.apache.ant : ant Optional jar 1.10.2

test (3)

Group / Artifact Type Version
org.slf4j : slf4j-log4j12 jar 1.7.25
log4j : log4j jar 1.2.17
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

JTidy

Build Status Build Status Code Quality

About

Revival of the JTidy Project updated to work with HTML5 new tags. Along with new option to not remove unknown tags:

Tidy tidy = new Tidy();
tidy.setDropProprietaryTags(false);

JTidy is a Java port of HTML Tidy, a HTML syntax checker and pretty printer. Like its non-Java cousin, JTidy can be used as a tool for cleaning up malformed and faulty HTML. In addition, JTidy provides a DOM interface to the document that is being processed, which effectively makes you able to use JTidy as a DOM parser for real-world HTML.

History

JTidy project on SourceForge.net seemed to fall into disrepair years ago and had not been updated for years. A few had forked it on Github. William L. Thomson Jr. came along and created a fork of others forks with a tag for his packaging needs as a dependency for JMeter. Then another came along, Dell Green who noticed some issues, tests failing, and undertook fixing both.

Since the code belonged to neither, William decided to create a JTidy organization and revive the project via community support. Which you are welcome to join in. Eventually this should become the official new home for JTidy.

Thanks to all past authors and developers. Those of which who could be found on Github have been invited to join this project. Along with those that this repository was forked from.

Future

The project is looking for new contributors and project maintainers as it is currently unmaintained.

Checkout v.Nu validator for a possible modern replacement.

com.github.jtidy

Versions

Version
1.0.2