autolink

Crates.io Status License

HTML auto-linking for Rust.

This is a small Rust crate, porting parts of Aaron Patterson's [rails_autolink], to wrap URLs in raw text into <a> HTML tags.

Examples

``` use autolink::autolink;

let before = "Share code on https://crates.io"; let after = "Share code on https://crates.io"; assert!(autolink(before, &vec!["target=\"_blank\""]) == after) ```