terminalstatic / rust-tidy

Rust wrapper for HTML tidy.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Rust wrapper for HTML tidy.

License:MIT License


Languages

Language:Rust 100.0%Language:C 0.0%