Skip to main content

clean

Function clean 

Source
pub fn clean(text: &str, limit: usize) -> String
Expand description

One safe single-line excerpt of at most limit chars, head and tail kept.