Skip to content

terminalstatic/rust-tidy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-tidy

A wrapper library for HTML Tidy in rust.

Overview

HTML Tidy corrects and cleans up HTML and XML documents by fixing markup errors and upgrading legacy code to modern standards.
This wrapper provides access to a major subset of the HTML Tidy api.
Please be aware that this lib is a pet project and therefore not thoroughly tested.

Requirements

Requires the usual build tools and libtidy (>=5.2.0), for example on ubuntu install with

sudo apt install libtidy-dev

on mac with

brew install tidy-html5

Usage

# Cargo.toml

[dependencies]
tidy = { git = "https://github.com/terminalstatic/rust-tidy", branch = "master" }

or

# Cargo.toml

[dependencies]
tidy = { git = "https://github.com/terminalstatic/rust-tidy", tag = "tidy-v0.1.7" }

However the build script might not work everywhere (wrote it for ubuntu and macOS).

Api Docs

Current api docs can be browsed here.