1 2 3 4 5 6 7 8 9 10 11
mod string; #[cfg(test)] mod tests { #[test] fn it_works() { use string::Htmlentities; println!("{}", "<script>alert(1);</script>".to_string().html_entities()); } }
1 2 3 4 5 6 7 8 9 10 11
mod string; #[cfg(test)] mod tests { #[test] fn it_works() { use string::Htmlentities; println!("{}", "<script>alert(1);</script>".to_string().html_entities()); } }