1 2 3 4 5 6
use wasm_bindgen::prelude::*; #[wasm_bindgen] pub fn replace(text: &str, from: &str, to: &str) -> String { text.replace(from, to) }