Function strip_ansi_codes

pub fn strip_ansi_codes(s: &str) -> Cow<'_, str>

Helper function to strip ansi codes.