Function dahlia::clean_ansi

source ·
pub fn clean_ansi(string: String) -> String
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");