htmlproc 0.2.2

HTML processors as utils written in Rust
Documentation

htmlproc

crates.io Documentation Dependency Status License

HTML processors as utils written in Rust. Each function is offered as a single feature, so the dependencies are kept small.

Install in Rust project

# install crate
cargo add htmlproc

# install crate with specific features
cargo add htmlproc --features path_to_url

# uninstall
# cargo remove htmlproc

Functions (Features)

omit_enclosure

Remove specific tag enclosure(s) from HTML text.

Usage

use htmlproc::omit_enclosure::manipulate;

let result: String = manipulate("<div>...<span>---</span>...</div>", &["span"]);

path_to_url

Convert paths to URLs.

Usage

use htmlproc::path_to_url::{convert, ConvertOptions};

let result: String = convert("<a href=\"/some/path\">link</a>", ConvertOptions::new("target.domain"));