strip-tags

Crates.iostrip-tags
lib.rsstrip-tags
version0.1.0
sourcesrc
created_at2024-08-31 17:45:18.566262
updated_at2024-08-31 17:45:18.566262
descriptionStrip HTML and PHP tags from strings
homepagehttps://github.com/LinusU/strip-tags-rs
repositoryhttps://github.com/LinusU/strip-tags-rs
max_upload_size
id1359082
size13,746
Linus Unnebäck (LinusU)

documentation

https://docs.rs/strip-tags

README

Strip Tags

A port of the strip_tags function from PHP to Rust.

Usage

use strip_tags::strip_tags;

fn main() {
    let html = "<p>Hello, <strong>world</strong>!</p>";
    let text = strip_tags(html);
    assert_eq!(text, "Hello, world!");
}

API

See documentation for more information.

Commit count: 0

cargo fmt