Function dahlia::clean_ansi
source · Expand description
Removes all ANSI codes from a string.
Example
let dahlia = Dahlia::new(Depth::High, false);
let green_text = dahlia.convert("&2>be me");
assert_eq!(clean_ansi(green_text), ">be me");