replace_html 0.1.0

A simple, minimal crate to replace HTML in wasm32 environments.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
fn main() {
    let html = r#"
    <style>
        p {
            margin: 25px
        }
    </style>
    <p>
        This was injected by Rust!
    </p>
    "#;

    if let Err(e) = replace_html::replace_body(html) {
        eprintln!("Failed to replace HTML: {e}");
    };
}