thp/doc-generator/src/utils.rs

4 lines
103 B
Rust
Raw Normal View History

pub fn to_html_fragment(text: &String) -> String {
text.clone().to_lowercase().replace(" ", "-")
}